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

Annotate a single line (for quantum error correction) #518

Merged
merged 6 commits into from
Jul 6, 2024

Conversation

GiggleLiu
Copy link
Member

image
julia> c = chain(put(5, 2=>X), put(5, 2=>line_annotation("!!!"; color="green")),  put(5, 3=>Y), control(5, 2, 3=>X))
nqubits: 5
chain
├─ put on (2)
│  └─ X
├─ put on (2)
│  └─ !!!
├─ put on (3)
│  └─ Y
└─ control(2)
   └─ (3,) X


julia> vizcircuit(c)

@GiggleLiu GiggleLiu requested a review from Roger-luo July 2, 2024 06:42
@GiggleLiu GiggleLiu requested review from exAClior and removed request for Roger-luo July 6, 2024 07:14
Copy link
Collaborator

@exAClior exAClior left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes looks fine. Feel free to ignore the comment on "hacky".

docs/src/man/registers.md Show resolved Hide resolved
@GiggleLiu GiggleLiu merged commit f652ff4 into master Jul 6, 2024
22 of 24 checks passed
@GiggleLiu GiggleLiu deleted the jg/annotate-line branch July 6, 2024 08:32
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.

2 participants