-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Cross entropy benchmarking spruce up #3669
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
Conversation
- Two-qubit generation (no "pattern" argument, can do line qubits - use cirq objects in random circuit construction - Notebook showing the theory for the fidelity function.
|
@balopat I see there's a check that means I can't use |
|
I'm also somewhat stumped by the notebook check error, per usual |
I'm sorry you have to deal with this :/ #3603 |
|
I can't reproduce the error when running |
|
However, when running locally I run into the issue that this notebook tries to use a function that was introduced in this PR, but it installs the stable version of |
This is a general issue with notebooks: they are targeted at the latest stable version. We don't have a concept of "nightly notebooks" yet, but this could be one of the first ones. We also don't test notebook compatibility with master either. We can start to think about this. For now, as this is a new notebook, and it is not part of the devsite documentation yet, I would just exclude it explicitly from the notebook_tests (the ignore pattern at the top of the file test file), make sure that the notebook actually does install |
|
done. Really, the notebooks should be versioned like Cirq proper. Ideally we should have the notebook tests run against cirq-as-in-the-pr (auto-installed in environment) and publish a colab environment that has cirq pre-installed. I took a look at the tensorflow examples and they don't install tensorflow every time for each notebook |
|
PTAL code owners |
balopat
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with nits - I'm going to review the notebook too
Co-authored-by: Balint Pato <balopat@users.noreply.github.com>
Co-authored-by: Balint Pato <balopat@users.noreply.github.com>
|
@balopat back at you |
Following #3669. This wraps up the sampling and simulation functions teased in the previous notebook. It includes utilities for batching sampler requests and multiprocessing simulation. The notebook walks through how coherent error can cause fidelity to decay. In the next PR, we'll add an optimization loop to characterize the mystery angle.
patternargument.Momentinstead ofDict[qubit, op].cirq.experiments.fidelity_estimation.least_squares_xeb_fidelity_from_expectationswith nice diagrams and plots. Let me know if this should be indocs/ordocs/xeb/ordocs/characterization/.@XiaoMiQC, who I can't add as reviewer