Skip to content

Commit

Permalink
Update test_transition.py
Browse files Browse the repository at this point in the history
glorialeezero committed Nov 26, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent fca79c8 commit 9805140
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/test_transition.py
Original file line number Diff line number Diff line change
@@ -145,13 +145,9 @@ def test_ghz_next():
assert (
str(pgm11)
== """
import cirq, numpy as np
def pgm(n):
qbits = cirq.LineQubit.range(n)
qc = cirq.Circuit()
qc.append(cirq.H(qbits[0]))
H(0)
for i0 in range(1,n):
qc.append(cirq.CX(qbits[0], qbits[i0]))
return qc
CX(0, i0)
""".strip()
)

0 comments on commit 9805140

Please sign in to comment.