qiskit_noise_learning.noise_learner.NoiseLearner
class qiskit_noise_learning.noise_learner.NoiseLearner(backend: BackendV2, options: LearningOptions | None = None, executor: ProgramExecutor | None = None)
Bases: object
A noise learner.
The arguments backend and executor are redundant. This is a temporary measure to enable simulated execution with an AerExecutor instance, and is not a stable interface.
Parameters
- backend – The backend supplying the compilation target: the gate set, coupling map and qubit count that generated circuits are built against. When
executoris given, this need not be the device the programs actually run on. - options – Learning options. If
None, default options are used. - executor – Where generated programs are submitted. If
None(default), aExecutorinbackend’s execution mode is used, so that programs run onbackenditself.
__init__
__init__(backend: BackendV2, options: LearningOptions | None = None, executor: ProgramExecutor | None = None)
Methods
Column 1 | Column 2 |
|---|---|
__init__(backend[, options, executor]) | |
run(instructions) | Submit a job to learn the noise of the given instructions. |
Attributes
backend
Type: BackendV2
The backend.
options
Type: LearningOptions
The learning options.
run
run(instructions: Sequence[CircuitInstruction]) → NoiseLearnerJob
Submit a job to learn the noise of the given instructions.
Parameters
instructions – The instructions to learn the noise of. Each instruction should contain a BoxOp operation.
Returns
The submitted job. The result of the job is a NoiseLearnerResult.
Raises
ValueError – If any instruction does not contain a BoxOp.