Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

824 multi planar #825

Merged
merged 8 commits into from
Aug 1, 2022
Merged

824 multi planar #825

merged 8 commits into from
Aug 1, 2022

Conversation

priti-ashvin-shah-ibm
Copy link
Collaborator

@priti-ashvin-shah-ibm priti-ashvin-shah-ibm commented Jul 27, 2022

What are the issues this pull addresses (issue numbers / links)?

closes issue #824.

Did you add tests to cover your changes (yes/no)?

no

Did you update the documentation accordingly (yes/no)?

Did you read the CONTRIBUTING document (yes/no)?

Summary

Add the concept of MultiPlanar class. Have the layer_stack_handler register to the class.

Details and comments

I used the below code to test this.

import qiskit_metal as metal
from qiskit_metal import designs, draw
from qiskit_metal import MetalGUI, Dict, open_docs
from qiskit_metal.toolbox_metal.layer_stack_handler import LayerStackHandler

design = designs.MultiPlanar()

lsh = LayerStackHandler(design)
# lsh = LayerStackHandler(
#     design,
#     "..\\qm_ssh\\qiskit-metal\\qiskit_metal\\depreciated code\\layer_stack_data_example_depreciated.csv"
# )
print(lsh.ls_df)

material, fill, z_coord, thickness, chip_name = lsh.get_properties_for_layer_datatype(
    ['material', 'fill', 'z_coord', 'thickness', 'chip_name'], 1)

print(f'{material},{fill},{z_coord},{thickness}, {chip_name}')

material, fill, z_coord, chip_name, thickness = lsh.get_properties_for_layer_datatype(
    ['material', 'fill', 'z_coord', 'chip_name', 'thickness'], 4, 0)

print(f'{material},{fill},{z_coord},{chip_name},{thickness}')


@priti-ashvin-shah-ibm priti-ashvin-shah-ibm marked this pull request as ready for review July 28, 2022 18:21
@priti-ashvin-shah-ibm priti-ashvin-shah-ibm merged commit f0f7d3c into main Aug 1, 2022
@priti-ashvin-shah-ibm priti-ashvin-shah-ibm deleted the 824_MultiPlanar branch August 1, 2022 18:54
@priti-ashvin-shah-ibm
Copy link
Collaborator Author

closed due to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants