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 functions to convert between quantities equivalent to avg fidelity #1

Open
marcusps opened this issue Jan 23, 2017 · 0 comments
Open
Assignees

Comments

@marcusps
Copy link
Collaborator

Trying to compare performance of different experimental implementations of gates is a maze because different groups will often insist on reporting different quantities that are largely equivalent but not directly comparable.

Quantities such as entanglement fidelity, avg fidelity, RB decay rate, equivalent depolarization rate, \chi_00, etc, are all related by simple linear functions. For the sake of sanity, we should have functions that convert between all of these.

There are two possible approaches:

  1. Function based: perhaps more natural, but not very composable, and will require many functions (for the 5 examples above, that's 20 functions). We'd need to define, e.g., avgfidelity2entfidelity, avgfidelity2rbdecay, etc.
  2. Type based: will strike some as unfamiliar, but will require much less effort (we can choose a reference quantity, and then simply convert to and from this quantity, require only 5 constructors). e.g., AvgFidelity(f), RBDecayRate(r), EquivalentDepolRate(p). All types would inherent from AvgFidelityMetric, would maintain one of the equivalent metric internally (e.g., avg fidelity), along with the named metric.
@marcusps marcusps self-assigned this Jan 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant