Skip to content

Show igate in circuit diagram #497

Answered by GiggleLiu
ty-zhao asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, just wrap it with the LabelBlock.

struct LabelBlock{BT<:AbstractBlock,D} <: TagBlock{BT,D}

Alternatively, you can pirate the following interface (not recommended)

function draw!(c::CircuitGrid, ::I2Gate, address, controls)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ty-zhao
Comment options

Answer selected by ty-zhao
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