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.
create_job
(vendor_job_id[, tags, shots, ...])Create new qBraid job.
metadata
()Returns device metadata
process_run_input
(run_input[, auto_compile, ...])Process quantum program before passing to device run method.
process_vendor_job_data
(...)Process vendor job data and return a QuantumJob object.
queue_depth
()Return the number of jobs in the queue for the backend
run
(run_input, *args[, auto_compile, ...])Run a quantum job specification on this quantum device.
run_batch
(run_input, *args[, auto_compile, ...])Run a quantum job specification on this quantum device.
status
()Return device status.
transpile
(run_input[, conversion_graph])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[, safe_mode])Verifies device status and circuit compatibility.
Attributes
device_type
The device type, Simulator, Fake_device 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.
vendor_id
Return the vendor device ID.