Skip to content

Conversation

@gadial
Copy link
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
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.

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
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
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
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

@chriseclectic chriseclectic changed the title Mitigation class documentation improvements Local and correlated readout error characterization experiments Jan 20, 2022
@chriseclectic
Copy link
Collaborator

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

Copy link
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