Skip to main content
IBM Quantum Platform

qiskit_noise_learning.noise_learner.NoiseLearner

class qiskit_noise_learning.noise_learner.NoiseLearner(backend: BackendV2, options: LearningOptions | None = None, executor: ProgramExecutor | None = None)

GitHub

Bases: object

A noise learner.

Note

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 executor is 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), a Executor in backend’s execution mode is used, so that programs run on backend itself.

__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

Column 1
Column 2
backendThe backend.
optionsThe learning options.

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.

Was this page helpful?
Report a bug, typo, or request content on GitHub.