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 plot ZNE results with multiple extrapolation techniques #2624

Open
natestemen opened this issue Jan 8, 2025 · 0 comments
Labels
feature-request A request for a feature, tool, or workflow in Mitiq. good first issue Good for newcomers non-quantum Requires no knowledge of quantum physics to fix / work on. zne Zero-noise extrapolation.

Comments

@natestemen
Copy link
Member

Motivation

When testing ZNE it can be hard to know which extrapolation technique to use given your data. Visualizing the results from the scaled circuit, as well as what linear/polynomial/exponential fits all look like on the same plot of your data could be very helpful in helping users pick the correct fitting function.

Proposed Solution

from mitiq import zne


folded_circuits = zne.scaled_circuits(circuit, scale_factors, scale_method)

results: list[float] = ...  # circuit execution happens here from the user

# ------------
# NEW FUNCTION
# ------------
zne.visualize_fits(scale_factors, results)  # plots data and various fits

Function signature might need to change, as well as naming.

@natestemen natestemen added good first issue Good for newcomers non-quantum Requires no knowledge of quantum physics to fix / work on. zne Zero-noise extrapolation. feature-request A request for a feature, tool, or workflow in Mitiq. labels Jan 8, 2025
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. good first issue Good for newcomers non-quantum Requires no knowledge of quantum physics to fix / work on. zne Zero-noise extrapolation.
Projects
None yet
Development

No branches or pull requests

1 participant