|View source on GitHub|
Decomposes a value into operations on the given qubits.
cirq.protocols.decompose_once_with_qubits( val: Any, qubits: Iterable['cirq.Qid'], default=cirq.protocols.decompose_protocol.RaiseTypeErrorIfNotProvided )
This method is used when decomposing gates, which don't know which qubits they are being applied to unless told. It decomposes the gate exactly once, instead of decomposing it and then continuing to decomposing the decomposed operations recursively until some criteria is met.
The value to call
The value to pass into the named
A default result to use if the value doesn't have a
The result of
val didn't have a
_decompose_ method (or that method returned
default wasn't set.