Skip to content

Commit

Permalink
LocalReadoutError update (Qiskit-Extensions#1238)
Browse files Browse the repository at this point in the history
  • Loading branch information
Naohnakazawa committed Feb 10, 2024
1 parent af0032b commit 6357a2c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions qiskit_experiments/library/characterization/local_readout_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,29 @@ class LocalReadoutError(BaseExperiment):
# section: analysis_ref
:class:`LocalReadoutErrorAnalysis`
# section: example
.. jupyter-execute::
:hide-code:
# backend
from qiskit_aer import AerSimulator
from qiskit.providers.fake_provider import FakePerth
backend = AerSimulator.from_backend(FakePerth())
.. jupyter-execute::
from qiskit_experiments.library import LocalReadoutError
qubits = list(range(4))
exp = LocalReadoutError(physical_qubits=qubits, backend=backend)
exp.analysis.set_options(plot=True)
exp.set_run_options(shots=10000)
result = exp.run()
mitigator = result.analysis_results(0).value
result.figure(0)
# section: manual
:doc:`/manuals/measurement/readout_mitigation`
Expand Down

0 comments on commit 6357a2c

Please sign in to comment.