cirq_rigetti.aspen_device.RigettiQCSAspenDevice

A cirq.Qid supporting Rigetti QCS Aspen device topology.

isa The InstructionSetArchitecture retrieved from the QCS api.

UnsupportedRigettiQCSQuantumProcessor If the isa does not define an Aspen device.

metadata Returns the associated Metadata with the device if applicable.
qubit_topology Return qubit topology indices with nx.Graph.

Methods

qubits

View source

Return list of AspenQubits within device topology.

Returns
List of AspenQubits within device topology.

validate_circuit

Raises an exception if a circuit is not valid.

Args
circuit The circuit to validate.

Raises
ValueError The circuit isn't valid for 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 exception if an operation does not satisfy the topological constraints of the device.

Note, in case the operation is invalid, you can still use the Quil compiler to rewire qubits and decompose the operation to this device's topology.

Additionally, this method will not attempt to decompose the operation into this device's native gate set. This integration, by default, uses the Quil compiler to do so.

Please see the Quil Compiler documentation for more information.

Args
operation The operation to validate.

Raises
UnsupportedRigettiQCSOperation The operation isn't valid for this device.

validate_qubit

View source

Raises an exception if the qubit does not satisfy the topological constraints of the RigettiQCSAspenDevice.

Args
qubit The qubit to validate.

Raises
UnsupportedQubit The operation isn't valid for this device.

__eq__

__ne__