@@ -61,7 +61,7 @@ def _pauli_up_to_global_phase(gate: ops.Gate) -> ops.Pauli | None:
6161def _validate_dd_sequence (dd_sequence : tuple [ops .Gate , ...]) -> None :
6262 """Validates a given dynamical decoupling sequence.
6363
64- The sequence should only consists of Pauli gates and is essentially an identity gate.
64+ The sequence should only consist of Pauli gates and is essentially an identity gate.
6565
6666 Args:
6767 dd_sequence: Input dynamical sequence to be validated.
@@ -82,7 +82,7 @@ def _validate_dd_sequence(dd_sequence: tuple[ops.Gate, ...]) -> None:
8282
8383 if not protocols .equal_up_to_global_phase (product , np .eye (2 )):
8484 raise ValueError (
85- 'Invalid dynamical decoupling sequence. Expect sequence production equals'
85+ 'Invalid dynamical decoupling sequence. Expect sequence product equals'
8686 f' identity up to a global phase, got { product } .' .replace ('\n ' , ' ' )
8787 )
8888
@@ -208,13 +208,13 @@ def add_dynamical_decoupling(
208208 single_qubit_gate_moments_only : bool = True ,
209209) -> cirq .Circuit :
210210 """Adds dynamical decoupling gate operations to a given circuit.
211- This transformer might add new moments thus change structure of the original circuit.
211+ This transformer might add new moments and thus change the structure of the original circuit.
212212
213213 Args:
214214 circuit: Input circuit to transform.
215215 context: `cirq.TransformerContext` storing common configurable options for transformers.
216216 schema: Dynamical decoupling schema name or a dynamical decoupling sequence.
217- If a schema is specified, provided dynamical decouping sequence will be used.
217+ If a schema is specified, the provided dynamical decoupling sequence will be used.
218218 Otherwise, customized dynamical decoupling sequence will be applied.
219219 single_qubit_gate_moments_only: If set True, dynamical decoupling operation will only be
220220 added in single-qubit gate moments.
0 commit comments