@@ -740,47 +740,6 @@ def test_cnot_unitary():
740740 )
741741
742742
743- def test_cnot_keyword_arguments ():
744- a = cirq .NamedQubit ('a' )
745- b = cirq .NamedQubit ('b' )
746-
747- eq_tester = cirq .testing .EqualsTester ()
748- eq_tester .add_equality_group (cirq .CNOT (a , b ), cirq .CNOT (control = a , target = b ))
749- eq_tester .add_equality_group (cirq .CNOT (b , a ), cirq .CNOT (control = b , target = a ))
750-
751-
752- def test_cnot_keyword_not_equal ():
753- a = cirq .NamedQubit ('a' )
754- b = cirq .NamedQubit ('b' )
755-
756- with pytest .raises (AssertionError ):
757- eq_tester = cirq .testing .EqualsTester ()
758- eq_tester .add_equality_group (cirq .CNOT (a , b ), cirq .CNOT (target = a , control = b ))
759-
760-
761- def test_cnot_keyword_too_few_arguments ():
762- a = cirq .NamedQubit ('a' )
763-
764- with pytest .raises (ValueError ):
765- _ = cirq .CNOT (control = a )
766-
767-
768- def test_cnot_mixed_keyword_and_positional_arguments ():
769- a = cirq .NamedQubit ('a' )
770- b = cirq .NamedQubit ('b' )
771-
772- with pytest .raises (ValueError ):
773- _ = cirq .CNOT (a , target = b )
774-
775-
776- def test_cnot_unknown_keyword_argument ():
777- a = cirq .NamedQubit ('a' )
778- b = cirq .NamedQubit ('b' )
779-
780- with pytest .raises (ValueError ):
781- _ = cirq .CNOT (target = a , controlled = b )
782-
783-
784743def test_cnot_decompose ():
785744 a = cirq .NamedQubit ('a' )
786745 b = cirq .NamedQubit ('b' )
0 commit comments