Skip to content

Instantly share code, notes, and snippets.

@willzeng
Created November 5, 2019 17:41
Show Gist options
  • Select an option

  • Save willzeng/115c2975db8198d38e3c8ae6053cf863 to your computer and use it in GitHub Desktop.

Select an option

Save willzeng/115c2975db8198d38e3c8ae6053cf863 to your computer and use it in GitHub Desktop.
# sample f_xeb using the same parameters as in the Google paper
n_qubits = 6
f_xeb = fidelity_xeb(n_qubits=n_qubits, trials=10, n_samples=10**5, sampler=simulate_probability)
print("Empirical FXEB: ", f_xeb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment