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

Feature: Pretty Good Measurement #147

Closed
vprusso opened this issue May 5, 2023 · 0 comments · Fixed by #522
Closed

Feature: Pretty Good Measurement #147

vprusso opened this issue May 5, 2023 · 0 comments · Fixed by #522
Labels
enhancement New feature or request feature request good first issue Good for newcomers help wanted Extra attention is needed
Milestone

Comments

@vprusso
Copy link
Owner

vprusso commented May 5, 2023

Given a collection of vectors or matrices representing quantum states, compute the corresponding "pretty good measurement".

A formal definition of the "pretty good measurement" can be found in Section 3.1 (page 137; "The pretty good measurement") of John Watrous's textbook.

In order to define the pretty good measurement, one must first construct the "average state" (simply sum up the density operators in your collection) as specified in Equation 3.49. Then, compute the pretty good measurement by way of either Equation 3.50 (if the average state is positive definite) or by way of Equation 3.52 (if the average state is not positive definite).

Note that computing negative fractional powers of matrices will benefit from the scipy.linalg.fractional_matrix_power function (documentation here)

The functionality for this should be created in measurements/pretty_good_measurement.py with corresponding unit tests found in tests/test_measurements/test_pretty_good_measurement.py. Be sure to also update the docs in /docs/measurements.rst under "Measurements" with toqito.measurements.pretty_good_measurement.py.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature request good first issue Good for newcomers help wanted Extra attention is needed
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants