|
17 | 17 | import sympy
|
18 | 18 |
|
19 | 19 | import cirq
|
20 |
| -from cirq.protocols.act_on_protocol_test import DummySimulationState |
| 20 | +from cirq.protocols.act_on_protocol_test import ExampleSimulationState |
21 | 21 |
|
22 | 22 | H = np.array([[1, 1], [1, -1]]) * np.sqrt(0.5)
|
23 | 23 | HH = cirq.kron(H, H)
|
@@ -310,7 +310,7 @@ def test_h_str():
|
310 | 310 |
|
311 | 311 | def test_x_act_on_tableau():
|
312 | 312 | with pytest.raises(TypeError, match="Failed to act"):
|
313 |
| - cirq.act_on(cirq.X, DummySimulationState(), qubits=()) |
| 313 | + cirq.act_on(cirq.X, ExampleSimulationState(), qubits=()) |
314 | 314 | original_tableau = cirq.CliffordTableau(num_qubits=5, initial_state=31)
|
315 | 315 | flipped_tableau = cirq.CliffordTableau(num_qubits=5, initial_state=23)
|
316 | 316 |
|
@@ -359,7 +359,7 @@ def _unitary_(self):
|
359 | 359 |
|
360 | 360 | def test_y_act_on_tableau():
|
361 | 361 | with pytest.raises(TypeError, match="Failed to act"):
|
362 |
| - cirq.act_on(cirq.Y, DummySimulationState(), qubits=()) |
| 362 | + cirq.act_on(cirq.Y, ExampleSimulationState(), qubits=()) |
363 | 363 | original_tableau = cirq.CliffordTableau(num_qubits=5, initial_state=31)
|
364 | 364 | flipped_tableau = cirq.CliffordTableau(num_qubits=5, initial_state=23)
|
365 | 365 |
|
@@ -397,9 +397,9 @@ def test_y_act_on_tableau():
|
397 | 397 |
|
398 | 398 | def test_z_h_act_on_tableau():
|
399 | 399 | with pytest.raises(TypeError, match="Failed to act"):
|
400 |
| - cirq.act_on(cirq.Z, DummySimulationState(), qubits=()) |
| 400 | + cirq.act_on(cirq.Z, ExampleSimulationState(), qubits=()) |
401 | 401 | with pytest.raises(TypeError, match="Failed to act"):
|
402 |
| - cirq.act_on(cirq.H, DummySimulationState(), qubits=()) |
| 402 | + cirq.act_on(cirq.H, ExampleSimulationState(), qubits=()) |
403 | 403 | original_tableau = cirq.CliffordTableau(num_qubits=5, initial_state=31)
|
404 | 404 | flipped_tableau = cirq.CliffordTableau(num_qubits=5, initial_state=23)
|
405 | 405 |
|
@@ -450,7 +450,7 @@ def test_z_h_act_on_tableau():
|
450 | 450 |
|
451 | 451 | def test_cx_act_on_tableau():
|
452 | 452 | with pytest.raises(TypeError, match="Failed to act"):
|
453 |
| - cirq.act_on(cirq.CX, DummySimulationState(), qubits=()) |
| 453 | + cirq.act_on(cirq.CX, ExampleSimulationState(), qubits=()) |
454 | 454 | original_tableau = cirq.CliffordTableau(num_qubits=5, initial_state=31)
|
455 | 455 |
|
456 | 456 | state = cirq.CliffordTableauSimulationState(
|
@@ -494,7 +494,7 @@ def test_cx_act_on_tableau():
|
494 | 494 |
|
495 | 495 | def test_cz_act_on_tableau():
|
496 | 496 | with pytest.raises(TypeError, match="Failed to act"):
|
497 |
| - cirq.act_on(cirq.CZ, DummySimulationState(), qubits=()) |
| 497 | + cirq.act_on(cirq.CZ, ExampleSimulationState(), qubits=()) |
498 | 498 | original_tableau = cirq.CliffordTableau(num_qubits=5, initial_state=31)
|
499 | 499 |
|
500 | 500 | state = cirq.CliffordTableauSimulationState(
|
|
0 commit comments