|View source on GitHub|
A generic Pasqal device.
cirq.pasqal.PasqalDevice( qubits: Sequence[
cirq.ops.Qid] ) -> None
The most general of Pasqal devices, enforcing only restrictions expected to be shared by all future devices. Serves as the parent class of all Pasqal devices, but can also be used on its own for hosting a nearly unconstrained device. When used as a circuit's device, the qubits have to be of the type cirq.NamedQubit and assumed to be all connected, the idea behind it being that after submission, all optimization and transpilation necessary for its execution on the specified device are handled internally by Pasqal.
|qubits (NamedQubit): Qubits on the device, exclusively unrelated to a physical position.|
||if the wrong qubit type is provided.|
cirq.ops.Moment) -> bool
Determines if it's possible to add an operation into a moment.
An operation can be added if the moment with the operation added is valid.
||The operation being added.|
||The moment being transformed.|
|Whether or not the moment will validate after adding the operation.|
||If either of the given moment or operation is invalid|
cirq.ops.Operation) -> "cirq.OP_TREE"
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.
cirq.ops.Operation) -> bool
qubit_set() -> FrozenSet[
Returns a set or frozenset of qubits on the device, if possible.
If the device has a finite set of qubits, then a set or frozen set
of all qubits on the device is returned.
If the device has no well defined finite set of qubits (e.g.
validate_circuit( circuit: "cirq.Circuit" ) -> None
Raises an error if the given circuit is invalid on this device.
A circuit is invalid if any of its moments are invalid or if there is a non-empty moment after a moment with a measurement.
||The circuit to validate|
||If the given circuit can't be run on this device|
validate_moment( moment: "cirq.Moment" ) -> None
Raises an exception if a moment is not valid.
||The moment to validate.|
||The moment isn't valid for this device.|
Raises an error if the given operation is invalid on this device.
||the operation to validate|
||If the operation is not valid|
__eq__( other: _SupportsValueEquality ) -> bool
__ne__( other: _SupportsValueEquality ) -> bool