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 device
specified, to avoid spurious failures due to e.g. using a Hadamard gate
that must be decomposed into native gates.