Adds dynamical decoupling gate operations to idle moments of a given circuit.
cirq.add_dynamical_decoupling(
circuit: 'cirq.AbstractCircuit',
*,
context: Optional['cirq.TransformerContext'] = None,
schema: Union[str, Sequence['cirq.Gate']] = 'X_XINV'
) -> 'cirq.Circuit'
This transformer preserves the moment structure of the circuit.
Args | |
---|---|
circuit
|
Input circuit to transform. |
context
|
cirq.TransformerContext storing common configurable options for transformers.
|
schema
|
Dynamical decoupling schema name or a dynamical decoupling sequence. If a schema is specified, provided dynamical decouping sequence will be used. Otherwise, customized dynamical decoupling sequence will be applied. |
Returns | |
---|---|
A copy of the input circuit with dynamical decoupling operations. |