-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Create a gate to represent a PauliRotation #6598
Copy link
Copy link
Open
Labels
area/gatesgood for learningFor beginners in QC, this will help picking up some knowledge. Bit harder than "good first issues"For beginners in QC, this will help picking up some knowledge. Bit harder than "good first issues"help wantedContributors welcomeContributors welcomekind/feature-requestDescribes new functionalityDescribes new functionalitypriority/after-1.7Leave for after the Cirq 1.7 releaseLeave for after the Cirq 1.7 releasepriority/p3Should be done in the next 6 monthsShould be done in the next 6 monthstriage/acceptedA consensus emerged that this bug report, feature request, or other action should be worked onA consensus emerged that this bug report, feature request, or other action should be worked on
Description
Metadata
Metadata
Assignees
Labels
area/gatesgood for learningFor beginners in QC, this will help picking up some knowledge. Bit harder than "good first issues"For beginners in QC, this will help picking up some knowledge. Bit harder than "good first issues"help wantedContributors welcomeContributors welcomekind/feature-requestDescribes new functionalityDescribes new functionalitypriority/after-1.7Leave for after the Cirq 1.7 releaseLeave for after the Cirq 1.7 releasepriority/p3Should be done in the next 6 monthsShould be done in the next 6 monthstriage/acceptedA consensus emerged that this bug report, feature request, or other action should be worked onA consensus emerged that this bug report, feature request, or other action should be worked on
Type
Fields
No fields configured for issues without a type.
Is your feature request related to a use case or problem? Please describe.$e^{i \theta P}$ where $P$ is a pauli string, appears a lot in discussions around rotations and magic states. Cirq has a a general way for representing exponentials of pauli strings $e^{i \theta \sum_k P_k}$ called PauliSumExponential however the pauli strings are stored as sparse strings (i.e. dropping identitiy operations) which results in the wrong unitary.
The operation
Example$\theta = \frac{\pi}{4}$ correct unitary should be
P=XIbut cirq gives
Describe the solution you'd like
ideally a fix to the PauliSumExponential operation or a new gate for representing the exponential of one pauli string
What is the urgency from your perspective for this issue? Is it blocking important work?
P2 - we should do it in the next couple of quarters