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

Make circuit rendering of PhasedISwapPowGate consistent with other gates #2524

Merged
merged 2 commits into from
Nov 11, 2019

Conversation

viathor
Copy link
Collaborator

@viathor viathor commented Nov 11, 2019

Before:

In [3]: cirq.Circuit([cirq.PhasedXPowGate(phase_exponent=0.1, exponent=0.2).on(q0), cirq.ISWAP(q0, q1)**0.3, cirq.PhasedISwapPowGate(phase_exponent=0.4, exponent=0.5).on(q0, q1)])

Out[3]: 
0: ───PhX(0.1)^0.2───iSwap───────PhasedISWAP**0.5───
                     │           │
1: ──────────────────iSwap^0.3───#2─────────────────

After:

In [3]: cirq.Circuit([cirq.PhasedXPowGate(phase_exponent=0.1, exponent=0.2).on(q0), cirq.ISWAP(q0, q1)**0.3, cirq.PhasedISwapPowGate(phase_exponent=0.4, exponent=0.5).on(q0, q1)])

Out[3]: 
0: ───PhX(0.1)^0.2───iSwap───────PhISwap(0.4)───────
                     │           │
1: ──────────────────iSwap^0.3───PhISwap(0.4)^0.5───

@googlebot googlebot added the cla: yes Makes googlebot stop complaining. label Nov 11, 2019
@Strilanc Strilanc added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Nov 11, 2019
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Nov 11, 2019
@CirqBot CirqBot merged commit e2373e6 into quantumlib:master Nov 11, 2019
@CirqBot CirqBot removed automerge Tells CirqBot to sync and merge this PR. (If it's running.) front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. labels Nov 11, 2019
@viathor viathor deleted the consistent-phasediswap-circuits branch November 11, 2019 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Makes googlebot stop complaining.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants