cirq.google.XmonDevice.decompose_operation¶
-
XmonDevice.decompose_operation(operation: cirq.ops.raw_types.Operation) → Union[cirq.ops.raw_types.Operation, Iterable[Any]][source]¶ Returns a device-valid decomposition for the given operation.
This method is used when adding operations into circuits with a devicespecified, to avoid spurious failures due to e.g. using a Hadamard gatethat must be decomposed into native gates.