Skip to content

Adding an external .gds file as a cell #87

Answered by qpavsmi
Diego-planckian1 asked this question in Q&A
Discussion options

You must be logged in to vote

OK, good to know that the file format was the issue :D

After self.layout.create_cell and before self.insert_cell, try adding this line:

qubit_cell = self.layout.create_cell("somequbit", Qubit.LIBRARY_NAME)
qubit_cell.transform(pya.DCplxTrans(0.1))  # shrinks to 10% (0.1) of the size
self.insert_cell(qubit_cell, pya.DTrans(0, False, 5000, 5000), "qb_0")

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@Diego-planckian1
Comment options

@qpavsmi
Comment options

@Diego-planckian1
Comment options

@qpavsmi
Comment options

Answer selected by Diego-planckian1
@Diego-planckian1
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants