Skip to content

Commit fa8d64d

Browse files
authored
Fix test case names. (#7406)
This fixes a minor issue I found while working on #7291 The test case names don't match the method being tested. This is confusing because there is another method called `merge_single_qubit_moments_to_phxz`, but it's not the one tested here.
1 parent 1c6ded9 commit fa8d64d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cirq-core/cirq/transformers/merge_single_qubit_gates_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,13 @@ def test_merge_single_qubit_moments_to_phxz_deep():
221221
)
222222

223223

224-
def test_merge_single_qubit_moments_to_phxz_global_phase():
224+
def test_merge_single_qubit_gates_to_phxz_global_phase():
225225
c = cirq.Circuit(cirq.GlobalPhaseGate(1j).on())
226226
c2 = cirq.merge_single_qubit_gates_to_phxz(c)
227227
assert c == c2
228228

229229

230-
def test_merge_single_qubit_moments_to_phased_x_and_z_global_phase():
230+
def test_merge_single_qubit_gates_to_phased_x_and_z_global_phase():
231231
c = cirq.Circuit(cirq.GlobalPhaseGate(1j).on())
232232
c2 = cirq.merge_single_qubit_gates_to_phased_x_and_z(c)
233233
assert c == c2

0 commit comments

Comments
 (0)