pyquil.device.Device

class pyquil.device.Device(name, raw)[source]

A device (quantum chip) that can accept programs.

Only devices that are online will actively be accepting new programs. In addition to the self._raw attribute, two other attributes are optionally constructed from the entries in self._rawisa and noise_model – which should conform to the dictionary format required by the .from_dict() methods for ISA and NoiseModel, respectively.

Variables
  • _raw (dict) – Raw JSON response from the server with additional information about the device.

  • isa (ISA) – The instruction set architecture (ISA) for the device.

  • noise_model (NoiseModel) – The noise model for the device.

Parameters
  • name (str) – name of the device

  • raw (Dict[str, Any]) – raw JSON response from the server with additional information about this device.

__init__(name, raw)[source]
Parameters
  • name (str) – name of the device

  • raw (Dict[str, Any]) – raw JSON response from the server with additional information about this device.

Methods

__init__(name, raw)

type name

str

get_isa([oneq_type, twoq_type])

Construct an ISA suitable for targeting by compilation.

get_specs()

Construct a Specs object required by compilation

qubit_topology()

The connectivity of qubits in this device given as a NetworkX graph.

qubits()

A sorted list of qubits in the device topology.

Attributes

isa

rtype

Optional[ISA]