-
Notifications
You must be signed in to change notification settings - Fork 127
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
Local and correlated readout error characterization experiments #611
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Chris says: "It doesn't include a release note saying that a new experiment was added with links to the API docs." Did you do it? I somehow don't see it.
- Please verify that it runs well on a real device.
qiskit_experiments/library/characterization/analysis/correlated_readout_error_analysis.py
Outdated
Show resolved
Hide resolved
qiskit_experiments/library/characterization/analysis/correlated_readout_error_analysis.py
Outdated
Show resolved
Hide resolved
qiskit_experiments/library/characterization/analysis/correlated_readout_error_analysis.py
Outdated
Show resolved
Hide resolved
qiskit_experiments/library/characterization/analysis/correlated_readout_error_analysis.py
Show resolved
Hide resolved
qiskit_experiments/library/characterization/analysis/local_readout_error_analysis.py
Outdated
Show resolved
Hide resolved
qubits = experiment_data.metadata["physical_qubits"] | ||
labels = [datum["metadata"]["label"] for datum in data] | ||
matrix = self._generate_matrix(data, labels) | ||
result_mitigator = CorrelatedReadoutMitigator(matrix, qubits=qubits) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess that trying to save the experiment will crash because CorrelatedReadoutMitigator
is not serializable.
- Is this correct?
- Verify that you can save with analysis parameter set to
False
, and you can load it and see it on the web. - Can we do anything that will allow us to save the result?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make these serializable we would to add settings
or __json_encode__
method to them for the json serializer. We could monkey patch them in experiments to do this to make it work before they can be added to terra.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking really nice! Several comments for some small tweaks and changes
qiskit_experiments/library/characterization/analysis/correlated_readout_error_analysis.py
Outdated
Show resolved
Hide resolved
qiskit_experiments/library/characterization/analysis/correlated_readout_error_analysis.py
Show resolved
Hide resolved
qiskit_experiments/library/characterization/analysis/correlated_readout_error_analysis.py
Outdated
Show resolved
Hide resolved
qiskit_experiments/library/characterization/local_readout_error.py
Outdated
Show resolved
Hide resolved
qiskit_experiments/library/characterization/local_readout_error.py
Outdated
Show resolved
Hide resolved
qiskit_experiments/library/characterization/local_readout_error.py
Outdated
Show resolved
Hide resolved
qiskit_experiments/library/characterization/local_readout_error.py
Outdated
Show resolved
Hide resolved
qiskit_experiments/library/characterization/local_readout_error.py
Outdated
Show resolved
Hide resolved
Forgot to add that the previous release note should be edited to include the two new experiments. |
# Conflicts: # qiskit_experiments/library/__init__.py # qiskit_experiments/library/characterization/__init__.py # qiskit_experiments/library/characterization/analysis/__init__.py # qiskit_experiments/library/mitigation/mitigation_experiment.py
# Conflicts: # docs/tutorials/readout_mitigation.ipynb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…it-community#611) Added two new experiments LocalReadoutError and CorrelatedReadoutError for characterizing the readout error of devices.
Summary
Details and comments