-
Notifications
You must be signed in to change notification settings - Fork 983
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[XEB] Generalize cirq.google.calibration for XEB (#3881)
Add analogous classes for XEB calibration. This re-configures some of the plumbing to be more general. Most of the structure of the Floquet objects should be untouched / compatible. This is a proof of concept that I wanted to get initial comments on from @mrwojtek and @dstrain115 before committing and putting on all the polish (generalize the rest of the functions, tests, notebooks) Open questions: - should the PhasedFSimCalibrationRequest objects have an attribute which is the class of request that they are associated with? - Do you want to go through a deprecation cycle for `prepare_floquet_characterization_for_moment(s)`?
- Loading branch information
1 parent
d923a0f
commit 6188c64
Showing
21 changed files
with
1,432 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,3 +85,5 @@ | |
t2_decay, | ||
T2DecayResult, | ||
) | ||
|
||
from cirq.experiments.xeb_fitting import XEBPhasedFSimCharacterizationOptions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
cirq-core/cirq/protocols/json_test_data/XEBPhasedFSimCharacterizationOptions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"cirq_type": "XEBPhasedFSimCharacterizationOptions", | ||
"characterize_theta": true, | ||
"characterize_zeta": true, | ||
"characterize_chi": true, | ||
"characterize_gamma": true, | ||
"characterize_phi": true, | ||
"theta_default": 0.0, | ||
"zeta_default": 0.0, | ||
"chi_default": 0.0, | ||
"gamma_default": 0.0, | ||
"phi_default": 0.0 | ||
} |
1 change: 1 addition & 0 deletions
1
cirq-core/cirq/protocols/json_test_data/XEBPhasedFSimCharacterizationOptions.repr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cirq.experiments.XEBPhasedFSimCharacterizationOptions(characterize_theta=True, characterize_zeta=True, characterize_chi=True, characterize_gamma=True, characterize_phi=True, theta_default=0.0, zeta_default=0.0, chi_default=0.0, gamma_default=0.0, phi_default=0.0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ sortedcontainers~=2.0 | |
scipy | ||
sympy | ||
typing_extensions | ||
tqdm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.