forked from quantumlib/Cirq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor and speed up
cirq.transformers.stratify
(quantumlib#6013)
* refactor cirq.transformers.stratify * fix one failing test * nit renaming * fix coverage * formatting fix * pylint fix * fix bug with measurements in stratification * add missing import * fix bug with finding time index for op * fix test, and nit change to keeping track of time indices * hopefully fix measurement bug * minor fix with ignored ops * fix test * only store shortest circuit found * minor bugfix * nit typing fix * one more silly bugfig * store shortest stratified circuit properly * fix bug with overlapping measurements * clean up handling of ignored ops * further clean up logic deciding where to put an op * factor out logic for finding earliest accomodating moment * fix typo * fix typo * remove unnecesaary use of defaultdict * further simplify logic in get_earliest_accommodating_moment_index * fix lint check * fix minor bug * nit docstring update * separately update qubit/mkey/ckey moments in cirq.stratify * fix bug with max only getting one argument * fix coverage check * fix typo * fix lint check --------- Co-authored-by: Tanuj Khattar <tanujkhattar@google.com>
- Loading branch information
1 parent
9653ae8
commit abffb1d
Showing
4 changed files
with
241 additions
and
121 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
Oops, something went wrong.