cirq.NeutralAtomDevice.decompose_operation

NeutralAtomDevice.decompose_operation(operation: cirq.ops.raw_types.Operation) → Union[cirq.ops.raw_types.Operation, cirq.ops.op_tree.OpTree][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.