Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local and correlated readout error characterization experiments #611

Merged
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
5a349a2
Mitigation class documentation
gadial Jan 16, 2022
0cac146
Splitting the mitigation experiments to two classes
gadial Jan 17, 2022
f927dea
Splitting the mitigation experiments to two classes
gadial Jan 17, 2022
aee85ca
Changing the test file to accomodate experiments split
gadial Jan 17, 2022
410774c
Splitting the existing documentation
gadial Jan 17, 2022
20bd3ed
Small documentation fixes
gadial Jan 17, 2022
f745194
Class renaming "readout mitigation" => "readout error"
gadial Jan 17, 2022
f2677d2
Analysis classes docs
gadial Jan 17, 2022
1a382ab
Linting
gadial Jan 17, 2022
694c291
Moving readout error experiments to characterization library
gadial Jan 17, 2022
3a01c3b
Doc fixes
gadial Jan 17, 2022
4c12244
Linting and bugfix
gadial Jan 18, 2022
949e3a9
Notebook fix
gadial Jan 18, 2022
d0f8904
Merge branch 'main' into mitigation_experiment_improvements
gadial Jan 18, 2022
9ac0a52
Small fixes
gadial Jan 20, 2022
34a3347
Changes in figure display
gadial Jan 20, 2022
85fd567
Test for parallel experiment
gadial Jan 20, 2022
a2f8629
Linting
gadial Jan 20, 2022
dfa4a4f
Merge branch 'main' into mitigation_experiment_improvements
gadial Jan 20, 2022
c694110
Linting
gadial Jan 20, 2022
0359c8d
Doc
gadial Jan 20, 2022
7c62358
Small fixes
gadial Jan 21, 2022
15ee74f
Fix the release notes
gadial Feb 13, 2022
8923a07
Merge branch 'main' into mitigation_experiment_improvements
gadial Feb 13, 2022
8359bc0
Merge branch 'main' into mitigation_experiment_improvements
gadial Feb 13, 2022
c154374
Additional doc fixes according to the PR reviews
gadial Feb 13, 2022
3dd1a25
Linting
gadial Feb 13, 2022
afa33f8
Linting
gadial Feb 13, 2022
d9069ba
Added a test for db integration
gadial Feb 13, 2022
c1ad8e1
Few more doc fixes
gadial Feb 13, 2022
dad27bd
docs fix
gadial Feb 13, 2022
6eabbd2
Specific mitigator serialization hack
gadial Feb 17, 2022
2952da3
Merge branch 'main' into mitigation_experiment_improvements
gadial Feb 17, 2022
8ee9eea
Testing mitigator to json encoding/decoding
gadial Feb 17, 2022
f7c9a74
Merge branch 'main' into mitigation_experiment_improvements
gadial Feb 17, 2022
1e4ee4b
Linting
gadial Feb 17, 2022
09bb213
New version of the mitigation tutorial
gadial Feb 17, 2022
ed1177a
Name change according to the changes in terra
gadial Feb 17, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Additional doc fixes according to the PR reviews
gadial committed Feb 13, 2022

Verified

This commit was signed with the committer’s verified signature. The key has expired.
tvdeyen Thomas von Deyen
commit c154374bffdaf901069520fcff55bd8707b3ef23
Original file line number Diff line number Diff line change
@@ -38,6 +38,11 @@ def calibration_circuit(num_qubits: int, state_label: str) -> QuantumCircuit:
class CorrelatedReadoutError(BaseExperiment):
r"""Class for correlated readout error characterization experiment
# section: overview
This class constructs the a :class:`~qiskit.result.CorrelatedReadoutMitigator` containing the full
assignment matrix :math:`A` characterizing the readout error for the given qubits
from the experiment results accessible via the
:meth:`~qiskit.result.CorrelatedReadoutMitigator.assignment_matrix` method.

Readout errors affect quantum computation during the measurement
of the qubits in a quantum device. By characterizing the readout errors,
it is possible to construct a *readout error mitigator* that is used both
@@ -52,9 +57,7 @@ class CorrelatedReadoutError(BaseExperiment):
A *Correlated readout mitigator* uses the full :math:`2^n \times 2^n` assignment matrix, meaning
it can only be used for small values of :math:`n`.
The corresponding class in Qiskit is the
`Correlated readout mitigator
<https://qiskit.org/documentation/stubs/qiskit.result.CorrelatedReadoutMitigator.html>`_
in ``qiskit-terra``.
:class:`~qiskit.result.CorrelatedReadoutMitigator` in :mod:`qiskit.result`.

The experiment generates :math:`2^n` circuits, for every possible
:math:`n`-qubit quantum state and constructs
Original file line number Diff line number Diff line change
@@ -24,6 +24,12 @@
class LocalReadoutError(BaseExperiment):
r"""Class for local readout error characterization experiment
# section: overview

This class constructs the a :class:`~qiskit.result.LocalReadoutMitigator` containing sequence
of assignment matrices :math:`A` characterizing the readout error for the given qubits
from the experiment results. The full assignment matrix is accessible via the
:meth:`~qiskit.result.LocalReadoutMitigator.assignment_matrix` method.

Readout errors affect quantum computation during the measurement
of the qubits in a quantum device. By characterizing the readout errors,
it is possible to construct a *readout error mitigator* that is used both
@@ -40,9 +46,8 @@ class LocalReadoutError(BaseExperiment):
In this case, the assignment matrix is the tensor product of :math:`n` :math:`2 \times 2`
matrices, one for each qubit, making it practical to store the assignment matrix in implicit
form, by storing the individual :math:`2 \times 2` assignment matrices.
The corresponding class in Qiskit is the `Local readout mitigator
<https://qiskit.org/documentation/stubs/qiskit.result.LocalReadoutMitigator.html>`_
in ``qiskit-terra``.
The corresponding class in Qiskit is the :class:`~qiskit.result.LocalReadoutMitigator`
in :mod:`qiskit.result`.

The experiment generates 2 circuits, corresponding to the states
:math:`|0^n\rangle` and :math:`|1^n\rangle`, measuring the error in all the qubits at once, and constructs