-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
area/docsarea/experimentsarea/xebkind/bug-reportSomething doesn't seem to work.Something doesn't seem to work.status/staleThis has been closed due to inactivity for an extended period of time.This has been closed due to inactivity for an extended period of time.triage/wont-fixDecided against going forward with thisDecided against going forward with this
Description
Documentation:
$f_{mn}^{meas} = \langle D * P^{th, mn}_q - 1 \rangle$ |
Code:
Cirq/cirq/experiments/cross_entropy_benchmarking.py
Lines 335 to 337 in 1d35492
pp_cross = probs_exp * probs_meas | |
pp_exp = probs_exp**2 | |
f_meas = np.mean(num_states * np.sum(pp_cross, axis=1) - 1.0) |
In the code, f_meas
seems to be a quite different thing from what's documented: it is obtained by estimating the experimental bitstring probabilities prob_meas
through a experimental histogram (note that most of these will be 0 at a modest number of qubits), and then multiplying that number by the theoretical probability.
It appears that the documentation is based on the assumption of exponentially distributed (Porter-Thomas) probabilities, while the code is doing something else. Is that right?
Metadata
Metadata
Assignees
Labels
area/docsarea/experimentsarea/xebkind/bug-reportSomething doesn't seem to work.Something doesn't seem to work.status/staleThis has been closed due to inactivity for an extended period of time.This has been closed due to inactivity for an extended period of time.triage/wont-fixDecided against going forward with thisDecided against going forward with this