cirq.DecompositionContext

Stores common configurable options for decomposing composite gates into simpler operations.

qubit_manager A cirq.QubitManager instance to allocate clean / dirty ancilla qubits as part of the decompose protocol.
extract_global_phases If set, will extract the global phases from DECOMPOSE_TARGET_GATESET into independent global phase operations.

qubit_manager Dataclass field
extract_global_phases Dataclass field

Methods

extracting_global_phases

View source

Returns a copy with the extract_global_phases field set.

__eq__

Return self==value.

extract_global_phases False