qrunch.quantum.backends.ibm.qiskit_aer_backend
Module with implementation of the Aer simulator.
Classes
Class for handling the Qiskit Aer Simulator. |
|
Available Aer simulator methods. |
- class QiskitAerBackend
Bases:
BackendClass for handling the Qiskit Aer Simulator.
- __init__(*, method: QiskitAerMethods = QiskitAerMethods.AUTOMATIC, device_to_simulate: DeviceData | None = None, seed: int | None = None, compiler: Compiler | None = None, translator: Translator[QuantumCircuit] | None = None) None
Initialize an Aer simulator.
- Parameters:
method (QiskitAerMethods) – Method to use in the simulator. Defaults to automatic
device_to_simulate (DeviceData | None) – If provided, the noise model and coupling map from the device data will be used to simulate a noisy device. Defaults to None.
seed (int | None) – Default seed for the simulator. Defaults to None.
compiler (Compiler | None) – Compiler for changing into universal gates. Defaults to
PerGateCompiler.translator (Translator[QuantumCircuit] | None) – Translator for translating universal gates to Qiskit format. Defaults to
QiskitTranslator.
- Return type:
None
- property name: str
Name of backend.
- run(circuits: Circuit | Sequence[Circuit], shots: int | None) SimulatedJob
Run circuit on the backend.
- Parameters:
- Return type:
- supports_shots_equals_none() bool
Return whether the backend supports shots = None.
Aer Backend does not support shots = None.
- Return type:
bool