qbraid.providers.QuantumDevice
- class QuantumDevice(device)[source]
Abstract interface for device-like classes.
Create a
QuantumDevice
object.- Parameters:
device (
QDEVICE
) – qBraid Quantum device object
- __init__(device)[source]
Create a
QuantumDevice
object.- Parameters:
device (
QDEVICE
) – qBraid Quantum device object
Methods
__init__
(device)Create a
QuantumDevice
object.compile
(run_input)Compile run input.
metadata
()Returns device metadata
process_run_input
(run_input[, auto_compile])Process quantum program before passing to device run method.
queue_depth
()Return the number of jobs in the queue for the backend
run
(run_input, *args, **kwargs)Abstract run method.
status
()Return device status.
transpile
(run_input)Convert circuit to package compatible with target device and pass through any provider transpile methods to match topology of device and/or optimize as applicable.
verify_run
(run_input)Checks device is online and that circuit num qubits <= device num qubits.
Attributes
device_type
The device type, Simulator or QPU.
id
Return the device ID.
name
Return the device name.
num_qubits
The number of qubits supported by the device.
provider
Return the device provider.
vendor
Return the software vendor name.