@@ -187,18 +187,18 @@ def append_to_circuit(self, circuit: stim.Circuit) -> None:
187187 basis_change = {"Z" : [], "X" : ["H" ], "Y" : ["S_DAG" , "H" ]}
188188 undo_basis_change = {"Z" : [], "X" : ["H" ], "Y" : ["H" , "S" ]}
189189 for g in basis_change [p_i ]:
190- circuit .append (g , [i ]) # ty: ignore[no-matching-overload]
190+ circuit .append (g , [i ])
191191 for g in basis_change [p_j ]:
192- circuit .append (g , [j ]) # ty: ignore[no-matching-overload]
192+ circuit .append (g , [j ])
193193
194- circuit .append ("CZ" , [i , j ]) # ty: ignore[no-matching-overload]
195- circuit .append ("S" , [i ]) # ty: ignore[no-matching-overload]
196- circuit .append ("S" , [j ]) # ty: ignore[no-matching-overload]
194+ circuit .append ("CZ" , [i , j ])
195+ circuit .append ("S" , [i ])
196+ circuit .append ("S" , [j ])
197197
198198 for g in undo_basis_change [p_j ]:
199- circuit .append (g , [j ]) # ty: ignore[no-matching-overload]
199+ circuit .append (g , [j ])
200200 for g in undo_basis_change [p_i ]:
201- circuit .append (g , [i ]) # ty: ignore[no-matching-overload]
201+ circuit .append (g , [i ])
202202
203203 def qubits (self ) -> set [int ]:
204204 """Get the set of qubits involved in the operation.
@@ -395,29 +395,29 @@ def append_to_circuit(self, circuit: stim.Circuit) -> None:
395395 circuit: The Stim circuit to append the operation to.
396396 """
397397 if self .clifford in {"H" , "S" , "I" }:
398- circuit .append (self .clifford , [self .qubit ]) # ty: ignore[no-matching-overload]
398+ circuit .append (self .clifford , [self .qubit ])
399399 elif self .clifford == "SDAG" :
400- circuit .append ("S_DAG" , [self .qubit ]) # ty: ignore[no-matching-overload]
400+ circuit .append ("S_DAG" , [self .qubit ])
401401 elif self .clifford == "HS" :
402- circuit .append ("H" , [self .qubit ]) # ty: ignore[no-matching-overload]
403- circuit .append ("S" , [self .qubit ]) # ty: ignore[no-matching-overload]
402+ circuit .append ("H" , [self .qubit ])
403+ circuit .append ("S" , [self .qubit ])
404404 elif self .clifford == "SH" :
405- circuit .append ("S" , [self .qubit ]) # ty: ignore[no-matching-overload]
406- circuit .append ("H" , [self .qubit ]) # ty: ignore[no-matching-overload]
405+ circuit .append ("S" , [self .qubit ])
406+ circuit .append ("H" , [self .qubit ])
407407 elif self .clifford == "HSH" :
408- circuit .append ("H" , [self .qubit ]) # ty: ignore[no-matching-overload]
409- circuit .append ("S" , [self .qubit ]) # ty: ignore[no-matching-overload]
410- circuit .append ("H" , [self .qubit ]) # ty: ignore[no-matching-overload]
408+ circuit .append ("H" , [self .qubit ])
409+ circuit .append ("S" , [self .qubit ])
410+ circuit .append ("H" , [self .qubit ])
411411 elif self .clifford == "SDAGH" :
412- circuit .append ("S_DAG" , [self .qubit ]) # ty: ignore[no-matching-overload]
413- circuit .append ("H" , [self .qubit ]) # ty: ignore[no-matching-overload]
412+ circuit .append ("S_DAG" , [self .qubit ])
413+ circuit .append ("H" , [self .qubit ])
414414 elif self .clifford == "HSDAG" :
415- circuit .append ("H" , [self .qubit ]) # ty: ignore[no-matching-overload]
416- circuit .append ("S_DAG" , [self .qubit ]) # ty: ignore[no-matching-overload]
415+ circuit .append ("H" , [self .qubit ])
416+ circuit .append ("S_DAG" , [self .qubit ])
417417 elif self .clifford == "HSDAGH" :
418- circuit .append ("H" , [self .qubit ]) # ty: ignore[no-matching-overload]
419- circuit .append ("S_DAG" , [self .qubit ]) # ty: ignore[no-matching-overload]
420- circuit .append ("H" , [self .qubit ]) # ty: ignore[no-matching-overload]
418+ circuit .append ("H" , [self .qubit ])
419+ circuit .append ("S_DAG" , [self .qubit ])
420+ circuit .append ("H" , [self .qubit ])
421421 else :
422422 msg = f"Unsupported single-qubit Clifford operation: { self .clifford } "
423423 raise ValueError (msg )
@@ -501,7 +501,7 @@ def append_to_circuit(self, circuit: stim.Circuit) -> None:
501501 Args:
502502 circuit: The Stim circuit to append the operation to.
503503 """
504- circuit .append (self .pauli , [self .qubit ]) # ty: ignore[no-matching-overload]
504+ circuit .append (self .pauli , [self .qubit ])
505505
506506 def qubits (self ) -> set [int ]:
507507 """Get the set of qubits involved in the operation.
@@ -574,7 +574,7 @@ def append_to_circuit(self, circuit: stim.Circuit) -> None:
574574 Args:
575575 circuit: The Stim circuit to append the operation to.
576576 """
577- circuit .append ("CNOT" , [self .control , self .target ]) # ty: ignore[no-matching-overload]
577+ circuit .append ("CNOT" , [self .control , self .target ])
578578
579579 def qubits (self ) -> set [int ]:
580580 """Get the set of qubits involved in the operation.
@@ -644,7 +644,7 @@ def append_to_circuit(self, circuit: stim.Circuit) -> None:
644644 Args:
645645 circuit: The Stim circuit to append the operation to.
646646 """
647- circuit .append ("SWAP" , [self .qubit_a , self .qubit_b ]) # ty: ignore[no-matching-overload]
647+ circuit .append ("SWAP" , [self .qubit_a , self .qubit_b ])
648648
649649 def qubits (self ) -> set [int ]:
650650 """Get the set of qubits involved in the operation.
0 commit comments