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

Use single gate (SXGate) to rotate from Z to Y measurement basis #431

Merged
merged 3 commits into from
Oct 4, 2023

Conversation

garrison
Copy link
Member

@garrison garrison commented Oct 3, 2023

While reading the OpenQASM 3 paper (page 24 of https://arxiv.org/abs/2104.14722v2), I noticed that there is actually a way to rotate to the Y basis to the Z basis in a single parameterless gate. We might as well use that (most efficient) method here before it gets repeated many times after we generate many subexperiments.

... rather than two gates, as we did before
@garrison garrison added the cutting QPD-based circuit cutting code label Oct 3, 2023
@garrison garrison marked this pull request as ready for review October 3, 2023 20:18
@garrison garrison requested a review from caleb-johnson October 3, 2023 20:21
Copy link
Collaborator

@caleb-johnson caleb-johnson left a comment

Choose a reason for hiding this comment

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

Sweet, nice catch

@garrison garrison merged commit c7429a8 into main Oct 4, 2023
10 checks passed
@garrison garrison deleted the y-measurement-sxgate branch October 4, 2023 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cutting QPD-based circuit cutting code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants