Adding externally created OASIS file as object within the chip level #83
-
Currently I am working with an intermediate workflow where I have some What I would like to really do is then write a From
But that code block doesn't work well if I define a new Chip class. From the example file Does anyone have recommendation for how to do this within a Chip class I am writing using an OASIS file that functions as an externally drawn Qubit object? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
Hi! Sorry for the delay in response.
There are many way to achieve what you want, but I think this approach fits your workflow the best.
Assuming you have qubit geometry saved in external .oas file. It helps if the file name and the name of the "Top cell" when file is loaded in KLayout is one and the same. I have a qubit named "somequbit.oas" and in this screenshot I opened the file in KLayout, you should see that the top cell has same string as the file name
Now place the file in the
klayout_package/python/kqcircuits/qubits
folder, among other qubits.Then in your chip class code you are able to place the qubit using this kind of code: