Skip to content

Local and correlated readout error characterization experiments#611

Merged
chriseclectic merged 38 commits into
qiskit-community:mainfrom
gadial:mitigation_experiment_improvements
Feb 17, 2022
Merged

Local and correlated readout error characterization experiments#611
chriseclectic merged 38 commits into
qiskit-community:mainfrom
gadial:mitigation_experiment_improvements

Conversation

@gadial
Copy link
Copy Markdown
Contributor

@gadial gadial commented Jan 16, 2022

Summary

Details and comments

@gadial gadial mentioned this pull request Jan 16, 2022
@gadial gadial changed the title Mitigation class documentation improvements [WIP] Mitigation class documentation improvements Jan 16, 2022
@gadial gadial changed the title [WIP] Mitigation class documentation improvements Mitigation class documentation improvements Jan 18, 2022
Copy link
Copy Markdown
Collaborator

@yaelbh yaelbh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. 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.
  2. Please verify that it runs well on a real device.

Comment thread docs/tutorials/readout_mitigation.ipynb Outdated
Comment thread qiskit_experiments/library/characterization/__init__.py Outdated
Comment thread docs/tutorials/readout_mitigation.ipynb Outdated
Comment thread test/test_readout_error.py
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)
Copy link
Copy Markdown
Collaborator

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.

  1. Is this correct?
  2. Verify that you can save with analysis parameter set to False, and you can load it and see it on the web.
  3. Can we do anything that will allow us to save the result?

Copy link
Copy Markdown
Collaborator

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.

Copy link
Copy Markdown
Collaborator

@chriseclectic chriseclectic left a 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

Comment thread docs/tutorials/readout_mitigation.ipynb Outdated
Comment thread docs/tutorials/readout_mitigation.ipynb Outdated
Comment thread qiskit_experiments/library/characterization/local_readout_error.py Outdated
Comment thread qiskit_experiments/library/characterization/local_readout_error.py Outdated
Comment thread qiskit_experiments/library/characterization/local_readout_error.py Outdated
Comment thread qiskit_experiments/library/characterization/local_readout_error.py Outdated
Comment thread qiskit_experiments/library/characterization/local_readout_error.py Outdated
@chriseclectic chriseclectic changed the title Mitigation class documentation improvements Local and correlated readout error characterization experiments Jan 20, 2022
@chriseclectic
Copy link
Copy Markdown
Collaborator

Forgot to add that the previous release note should be edited to include the two new experiments.

Copy link
Copy Markdown
Collaborator

@chriseclectic chriseclectic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chriseclectic chriseclectic merged commit 317b964 into qiskit-community:main Feb 17, 2022
@gadial gadial deleted the mitigation_experiment_improvements branch February 18, 2022 06:31
@chriseclectic chriseclectic added the Changelog: New Feature Include in the "Added" section of the changelog label Apr 25, 2022
paco-ri pushed a commit to paco-ri/qiskit-experiments that referenced this pull request Jul 11, 2022
…it-community#611)

Added two new experiments LocalReadoutError and CorrelatedReadoutError for characterizing the readout error of devices.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changelog: New Feature Include in the "Added" section of the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants