@@ -35,7 +35,9 @@ def _test_processor(processor: cg.engine.abstract_processor.AbstractProcessor):
3535 circuit = cirq .Circuit (cirq .X (bad_qubit ), cirq .measure (bad_qubit ))
3636 with pytest .raises (ValueError , match = 'Qubit not on device' ):
3737 _ = processor .run (circuit , repetitions = 100 )
38- circuit = cirq .Circuit (cirq .H (good_qubit ), cirq .measure (good_qubit ))
38+ circuit = cirq .Circuit (
39+ cirq .testing .DoesNotSupportSerializationGate ()(good_qubit ), cirq .measure (good_qubit )
40+ )
3941 with pytest .raises (ValueError , match = 'Cannot serialize op' ):
4042 _ = processor .run (circuit , repetitions = 100 )
4143
@@ -195,7 +197,9 @@ def test_create_default_noisy_quantum_virtual_machine():
195197 with pytest .raises (ValueError , match = 'Qubit not on device' ):
196198 _ = processor .run (circuit , repetitions = 100 )
197199 good_qubit = cirq .GridQubit (5 , 4 )
198- circuit = cirq .Circuit (cirq .H (good_qubit ), cirq .measure (good_qubit ))
200+ circuit = cirq .Circuit (
201+ cirq .testing .DoesNotSupportSerializationGate ()(good_qubit ), cirq .measure (good_qubit )
202+ )
199203 with pytest .raises (ValueError , match = '.* contains a gate which is not supported.' ):
200204 _ = processor .run (circuit , repetitions = 100 )
201205 device_specification = processor .get_device_specification ()
0 commit comments