qbraid.devices.DeviceLikeWrapper

class DeviceLikeWrapper(**kwargs)[source]

Abstract interface for device-like classes.

Create a DeviceLikeWrapper object.

Keyword Arguments
  • qbraid_id (str) – The internal device ID (see get_devices())

  • name (str) – The name of the device

  • provider (str) – The company to which the device belongs

  • vendor (str) – The company who’s software is used to access the device

  • runPackage (str) – The software package used to access the device

  • objArg (str) – The vendor device id/arn to supply as arg to vendor device-like object

  • type (str) – The type of the device, “QPU” or “Simulator”

  • numberQubits (int) – The number of qubits in the device (if applicable)

__init__(**kwargs)[source]

Create a DeviceLikeWrapper object.

Keyword Arguments
  • qbraid_id (str) – The internal device ID (see get_devices())

  • name (str) – The name of the device

  • provider (str) – The company to which the device belongs

  • vendor (str) – The company who’s software is used to access the device

  • runPackage (str) – The software package used to access the device

  • objArg (str) – The vendor device id/arn to supply as arg to vendor device-like object

  • type (str) – The type of the device, “QPU” or “Simulator”

  • numberQubits (int) – The number of qubits in the device (if applicable)

Methods

__init__(**kwargs)

Create a DeviceLikeWrapper object.

run(run_input, *args, **kwargs)

Abstract run method.

Attributes

id

Return the device ID.

info

Return the device info.

name

Return the device name.

num_qubits

The number of qubits supported by the device.

provider

Return the device provider.

status

Return device status.

vendor

Return the software vendor name.