MQPBackend¶
Bases: BackendV2
MQP Backend class: This class extends Qiskit's BackendV2 class and provides methods to compile and run circuits on the backend. Users do not need to create an instance of this class directly; it is created and returned by the MQPProvider when a backend is requested.
coupling_map
property
¶
coupling_map: CouplingMap
Return the CouplingMap for the backend
Returns:
Type | Description |
---|---|
CouplingMap
|
Coupling map for the backend |
num_pending_jobs
property
¶
num_pending_jobs: int
Returns the number of jobs waiting to be scheduled on the backend
Returns:
Type | Description |
---|---|
int
|
Number of pending jobs |
target
property
¶
target: Target
Return the Target for the backend
Returns:
Type | Description |
---|---|
Target
|
Target for the backend |
Raises:
Type | Description |
---|---|
NotImplementedError
|
Target for the backend is not available/implemented |
run ¶
run(
run_input: Union[QuantumCircuit, List[QuantumCircuit]],
shots: int = 1024,
no_modify: bool = False,
qasm3: bool = False,
queued: bool = False,
**options
) -> MQPJob
Submit a circuit/batch of circuits to the backend
Parameters:
Name | Type | Description | Default |
---|---|---|---|
run_input |
Union[QuantumCircuit, List[QuantumCircuit]]
|
quantum circuit(s) to run |
required |
shots |
int
|
number of shots |
1024
|
no_modify |
bool
|
do not modify/transpile the circuit |
False
|
qasm3 |
bool
|
use QASM3 format to send the circuit |
False
|
queued |
bool
|
enqueue (for limited time) the job while backend is offline |
False
|
Returns:
Type | Description |
---|---|
MQPJob
|
An instance of MQPJob |