cirq.Device

class cirq.Device[source]

Hardware constraints for validating circuits.

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

can_add_operation_into_moment(operation, moment)

Determines if it’s possible to add an operation into a moment.

decompose_operation(operation)

Returns a device-valid decomposition for the given operation.

qubit_set()

Returns a set or frozenset of qubits on the device, if possible.

validate_circuit(circuit)

Raises an exception if a circuit is not valid.

validate_moment(moment)

Raises an exception if a moment is not valid.

validate_operation(operation)

Raises an exception if an operation is not valid.