Skip to content

Cross entropy benchmarking functionality does not match documentation #2757

@kevinsung

Description

@kevinsung

Documentation:

$f_{mn}^{meas} = \langle D * P^{th, mn}_q - 1 \rangle$

Code:
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?

@XiaoMiQC

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions