-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for WaitGate and inverse of sqrt(iSWAP) to characterizati…
…on and compilation (#3750) * Change definition of run_floquet_characterization_for_circuit * Remove the dummy progress step * Apply Doug's comments * Reformat file * Remove support for json serialization * Add note to add JSON serialization * Fix documentation * Remove support for JSON serialization * Fix linter errors * Add documentation for request and result objects * Add documentation for run_characaterizations * Remove handler_name argument * Fix type for pairs field * Add JSON tests for PhasedFSimCharacterization. * Revert "Remove support for json serialization" This reverts commit 7bb1e34. * fix formatting * Add tests for encoding and decoding of calibration requests/results. * Fix lint error * Fix lint errors * Fix merge issues * Remove gate set from dataclasses * Add reference to mypy import issue * Add JSON serialization for all Floquet calibration objects * Formatting * Add tests fro get_parameters * Increase test coverage a bit more. * Add copyrights and one more trivial test * Add copyright notices * Fix remaining test coverage by providing a test for run_characterization * Remove redundant gate_set arguments. * Add docstrings and reformat code * Add docstrings * Fix linter errors * Addressed review comments * Remove debug line. * Fix type checks * Restore abstract class for request container * Format files * Fix simulator abstract method * Fix formatting * Ignore type check for abstract dataclass * Ignore type check for abstract dataclass * Fix formatting * Fix formatting * Fix linter errors * Fix passed parameters * Remove TODOs * Remove TODOs * Remove TODOs * Fixes to json handling * Add run_floquet_characterization_for_circuit test * Fix typing issue * Clarify documentation for gate attribute. * Better names for options creators * Add constant for default options * Fix engine simulator tests * Add support for WaitGates * Remove Floquet-specific characterization result. * Fixes after merge * Fixes after merge * Fixes after merge * Add incomplete support for ISWAP ** 0.5 gates * Fix override method * Add docstring and rename qubit_pairs * Add sqrt_iswap_gates_translator to a public interface * Rename request preparation methods * Number of minor improvements * Fix typing errors * Ignore lru_cache in mypy * Workaround for mypy issues * Fix formatting * Improve sqrt_iswap_gates_translator * Add tests for try_convert_sqrt_iswap_to_fsim * Make characterization options constants * Better naming * Better variable naming * Exclude constants from serialization * Add missing coverage tests * Fix coverage tests * Refactor make_floquet_request_for_circuit * Improve naming * Fix typing error * Restore missing import * Include WaitGate in zphases corrections * Add test for calibration * Fix merge mistake * Fixes after merge * Downgrade python fstring * Fix typing errors * Fix serialization tests * Clean up gate generation * Improve coverage tests * Add more tests * Add missing tests * Add missing tests * Provide missing documentation * Fix lint errors * Add missing tests * Fix simulator bug and add missing test coverage * Fix linter errors * Add missing coverage test * Fix coverage * Fix coverage test * Remove unused variable * Fix formatting * Improve documentation and arguments * Move the converter to the top level * Fix formatting * Further fixes * Increase test tolerance * Increase test tolerance * Refactor phased calibration * Improve the documentation and method signatures * Add override creator to options. * Clean up method return signatures * Fix docstring * Fix mypy issues * Fix json test * Better naming * Add tests to cover coverage requirements * Fix json tests * Add coverage tests * Add dosctrings and tests * Fix formatting * Improve phase exponent handling * Fix formatting * Readibility improvements * Fix docstring * Readability improvements * Add support for periodic values of theta * Better syntax * Gather compensation logic in one place * Fix formatting * Rename dataclass * Add more tests and fix a bug * Update cirq/google/calibration/phased_fsim.py Co-authored-by: Matthew Harrigan <matthew.harrigan@outlook.com> Co-authored-by: Doug Strain <dstrain@google.com> Co-authored-by: Cirq Bot <craiggidney+github+cirqbot@google.com> Co-authored-by: Matthew Harrigan <matthew.harrigan@outlook.com>
- Loading branch information
1 parent
18e11b3
commit 2c904da
Showing
6 changed files
with
386 additions
and
132 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
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.