-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Move GreedyQubitManager
from Cirq-FT to Cirq-Core
#6309
Move GreedyQubitManager
from Cirq-FT to Cirq-Core
#6309
Conversation
self._used_qubits: Set['cirq.Qid'] = set() | ||
self._free_qubits: List['cirq.Qid'] = [] |
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.
let the record reflect that I tried to actually verify that this is just a move but you've changed a few things :p including quoting the types now
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.
Quoting the types was necessary because earlier, in Cirq-FT, we could just do import cirq
but now we either need to import the submodules or put import cirq
under if TYPE_CHECKING
and quote the types.
This should be the only change, I haven't made any logic changes as part of the move.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #6309 +/- ##
==========================================
- Coverage 97.89% 97.89% -0.01%
==========================================
Files 1104 1106 +2
Lines 96134 96152 +18
==========================================
+ Hits 94113 94130 +17
- Misses 2021 2022 +1
☔ View full report in Codecov by Sentry. |
* Move GreedyQubitManager from Cirq-FT to Cirq-Core * Mark Cirq-FT qubit manager as deprecated * Fix tests * Fix coverage test
Part of Cirq-FT and Qualtran integration.