@@ -1384,12 +1384,10 @@ def test_x_y_z_clifford_protocols(
13841384
13851385
13861386@pytest .mark .parametrize (
1387- 'gate_cls, qubit_range' ,
1388- ((cirq .CZPowGate , 2 ), (cirq .CXPowGate , 2 ), (cirq .HPowGate , 1 ))
1387+ 'gate_cls, qubit_range' , ((cirq .CZPowGate , 2 ), (cirq .CXPowGate , 2 ), (cirq .HPowGate , 1 ))
13891388)
13901389@pytest .mark .parametrize (
1391- 'exponent, is_clifford' ,
1392- ((0 , True ), (0.5 , False ), (1 , True ), (- 1.5 , False )),
1390+ 'exponent, is_clifford' , ((0 , True ), (0.5 , False ), (1 , True ), (- 1.5 , False )),
13931391)
13941392def test_cx_h_cz_clifford_protocols (
13951393 gate_cls : type [cirq .EigenGate ], qubit_range : int , exponent : float , is_clifford : bool
@@ -1408,6 +1406,7 @@ def test_cx_h_cz_clifford_protocols(
14081406 np .testing .assert_allclose (cirq .unitary (gate ), cirq .unitary (clifford_decomposition ))
14091407 else :
14101408 assert not cirq .has_stabilizer_effect (gate )
1411- assert gate ._decompose_into_clifford_with_qubits_ (
1412- cirq .LineQubit .range (qubit_range )
1413- ) is NotImplemented
1409+ assert (
1410+ gate ._decompose_into_clifford_with_qubits_ (cirq .LineQubit .range (qubit_range ))
1411+ is NotImplemented
1412+ )
0 commit comments