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

Add functionality to generate confusion matrix on backend #2448

Open
natestemen opened this issue Jul 12, 2024 · 0 comments
Open

Add functionality to generate confusion matrix on backend #2448

natestemen opened this issue Jul 12, 2024 · 0 comments
Labels
feature-request A request for a feature, tool, or workflow in Mitiq. needs/agreed-design Needs a plan of action that is agreed upon to complete. rem Readout Error Mitigation technique

Comments

@natestemen
Copy link
Member

In REM, we have a handy function to generate a confusion matrix when the probabilities of bitflips are known:

def generate_inverse_confusion_matrix(
num_qubits: int,
p0: float = 0.01,
p1: float = 0.01,
) -> npt.NDArray[np.float64]:

Adding a function that generates the inversion confusion matrix when the parameters $p_0$ and $p_1$ are not known would aid users in using REM when using real backends with limited knowledge.

Requirements

  1. Decide best way to "learn" $p_0$ and $p_1$ parameters, especially when they may differ across qubits.
  2. Add a function to mitiq/rem/inverse_confusion_matrix.py that allows a user to generate an inverse confusion matrix on a specified backend (using an executor). This function should optionally return $p_0$ and $p_1$.

This idea came out of discussion with @ecarlander and @ruheenirodi.

@natestemen natestemen added feature-request A request for a feature, tool, or workflow in Mitiq. rem Readout Error Mitigation technique labels Jul 12, 2024
@purva-thakre purva-thakre added the needs/agreed-design Needs a plan of action that is agreed upon to complete. label Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A request for a feature, tool, or workflow in Mitiq. needs/agreed-design Needs a plan of action that is agreed upon to complete. rem Readout Error Mitigation technique
Projects
None yet
Development

No branches or pull requests

2 participants