-
Notifications
You must be signed in to change notification settings - Fork 51
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
move SU2RotationGate
to basic_gates/
#802
Conversation
ce193f2
to
bc7519d
Compare
@tanujkhattar one question: Should we still map them ignoring global phase? Another idea could be to just used |
bc7519d
to
c681d85
Compare
What was the conclusion from the meeting? Were we going to remove the decomposition and leave this as an "atomic" bloq? And add its tensor. Also: re: global phase: we said that it needs to match, so if |
c681d85
to
bd1d5c9
Compare
@mpharrigan I dropped the PhasedXZ conversion. About the decomposition, I am fine with either case. Perhaps its still useful to have a decomposition in terms of Pauli rotations in case someone wants to generate circuits? |
bf98db0
to
e895a93
Compare
@tanujkhattar @mpharrigan could one of you review this PR? thanks! I also have two questions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Answered all your questions and requested a few changes. Looking great overall.
Should I make the bloq atomic?
No
Is there anything specific to be done to support symbolic params?
Suggested minor improvements
402acc5
to
47d2ba5
Compare
47d2ba5
to
edd3f14
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM % one final suggestion to update the _cirq_gate_to_bloq
to return GlobalPhase
bloq when it sees a cirq.GlobalPhaseGate
.
Feel free to merge after that.
5e9a40b
to
3a0d092
Compare
Qualtran/qualtran/cirq_interop/_cirq_to_bloq.py Lines 347 to 348 in 4dffc97
|
#669 (comment)
SU2RotationGate
tobasic_gates/
directory.from_matrix
so you can derive the parameters of the gate given an arbitrary 2-qubit unitary.wire_symbol
bloq_autotester
works.rotation_matrix
method to the class)BloqExample
dev_tools/autogenerate-bloqs-notebooks.py
to generate a docSkipped (due to global phase mismatch)
overrideas_cirq_op
to return aPhasedXZGate
overrideCIRQ_GATE_TO_BLOQ_MAP
in_cirq_gate_to_bloq
to convert acirq.PhasedXZGate
toSU2RotationGate
test thatassert_decompose_is_consistent_with_t_complexity
worksOverridebuild_call_graph