2727
2828
2929@frozen
30- class DummySelect (cirq_ft .SelectOracle ):
30+ class ExampleSelect (cirq_ft .SelectOracle ):
3131 bitsize : int
3232 control_val : Optional [int ] = None
3333
@@ -50,7 +50,7 @@ def decompose_from_registers(self, context, selection, target):
5050@pytest .mark .parametrize ('bitsize' , [2 , 3 , 4 , 5 ])
5151@pytest .mark .parametrize ('arctan_bitsize' , [5 , 6 , 7 ])
5252def test_phase_oracle (bitsize : int , arctan_bitsize : int ):
53- phase_oracle = ComplexPhaseOracle (DummySelect (bitsize ), arctan_bitsize )
53+ phase_oracle = ComplexPhaseOracle (ExampleSelect (bitsize ), arctan_bitsize )
5454 g = cq_testing .GateHelper (phase_oracle )
5555
5656 # Prepare uniform superposition state on selection register and apply phase oracle.
@@ -78,6 +78,6 @@ def test_phase_oracle(bitsize: int, arctan_bitsize: int):
7878
7979def test_phase_oracle_consistent_protocols ():
8080 bitsize , arctan_bitsize = 3 , 5
81- gate = ComplexPhaseOracle (DummySelect (bitsize , 1 ), arctan_bitsize )
81+ gate = ComplexPhaseOracle (ExampleSelect (bitsize , 1 ), arctan_bitsize )
8282 expected_symbols = ('@' ,) + ('ROTy' ,) * bitsize
8383 assert cirq .circuit_diagram_info (gate ).wire_symbols == expected_symbols
0 commit comments