Metrics: comparing distributions
Every target's outcome distribution q is compared with the ideal statevector distribution p.
Success probability is the probability the target assigns to the ideal most likely bitstring: the number you care about for algorithms with one right answer (Grover, Bernstein–Vazirani).
| p | q | TVD | Hellinger fidelity |
|---|---|---|---|
| {00: .5, 11: .5} | same | 0 | 1 |
| {00: .5, 11: .5} | {00: .5, 01: .5} | 0.5 | 0.25 |