Skip to content

Commit

Permalink
Fix the typo in clifford_gate::test_commutes_pauli
Browse files Browse the repository at this point in the history
  • Loading branch information
bichengying committed May 29, 2021
1 parent 705f37b commit b2d9269
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cirq-core/cirq/ops/clifford_gate_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ def test_commutes_single_qubit_gate(gate, other):

@pytest.mark.parametrize(
'gate,pauli,half_turns',
itertools.product(_all_clifford_gates(), _paulis, (0.1, 0.25, 0.5, -0.5)),
itertools.product(_all_clifford_gates(), _paulis, (1.0, 0.25, 0.5, -0.5)),
)
def test_commutes_pauli(gate, pauli, half_turns):
pauli_gate = pauli ** half_turns
Expand All @@ -458,7 +458,7 @@ def test_commutes_pauli(gate, pauli, half_turns):
pauli_gate(q0),
gate(q0),
).unitary()
commutes = cirq.commutes(gate, pauli)
commutes = cirq.commutes(pauli_gate, pauli)
commutes_check = cirq.allclose_up_to_global_phase(mat, mat_swap)
assert commutes == commutes_check

Expand Down

0 comments on commit b2d9269

Please sign in to comment.