cirq_pasqal.pasqal_device.PasqalDevice

A generic Pasqal device.

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.

TypeError If the wrong qubit type is provided.
ValueError If the number of qubits is greater than the devices maximum.

maximum_qubit_number

metadata Returns the associated Metadata with the device if applicable.
supported_qubit_type

Methods

is_pasqal_device_op

View source

qubit_list

View source

validate_circuit

View source

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.

Args
circuit The circuit to validate

Raises
ValueError If the given circuit can't be run on this device

validate_moment

Raises an exception if a moment is not valid.

Args
moment The moment to validate.

Raises
ValueError The moment isn't valid for this device.

validate_operation

View source

Raises an error if the given operation is invalid on this device.

Args
operation The operation to validate.

Raises
ValueError If the operation is not valid.
NotImplementedError If the operation is a measurement with an invert mask.

__eq__

__ne__