-
Notifications
You must be signed in to change notification settings - Fork 51
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
[QECGatesCost] Port everything to QECGatesCost #1359
Merged
mpharrigan
merged 6 commits into
quantumlib:main
from
mpharrigan:2024-08/t-matching-finale
Aug 30, 2024
Merged
[QECGatesCost] Port everything to QECGatesCost #1359
mpharrigan
merged 6 commits into
quantumlib:main
from
mpharrigan:2024-08/t-matching-finale
Aug 30, 2024
Conversation
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
mpharrigan
force-pushed
the
2024-08/t-matching-finale
branch
from
August 28, 2024 21:36
b4f72a0
to
667cc3e
Compare
fdmalone
reviewed
Aug 29, 2024
fdmalone
reviewed
Aug 29, 2024
fdmalone
reviewed
Aug 29, 2024
fdmalone
reviewed
Aug 29, 2024
fdmalone
approved these changes
Aug 29, 2024
anurudhp
approved these changes
Aug 29, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This changes the default implementation of
t_complexity
to go viaQECGatesCost
. This builds on the prior changes #1313 #1323 #1333 and the even longer history of bloq-ifying the t_complexity protocolSpecifically in this PR there are
QECGatesCost
that can toggle "legacy" behavior for exact matching of counts. You can read the code to see exactly what this isTComplexity
object.With these changes: all bloq examples match their T complexities. All tests pass.
Next steps will be to remove all
_t_complexity_
overrides. This should be seamless, as I did most of the testing without the legacy shim to priorities_t_complexity_
override and fixed most of the issues (usually by moving the costs tomy_static_costs
).Pending resolution of #1318, we can change the way MultiTargetCNOT is handled. In this PR: the legacy flag makes it count as multiple cliffords; otherwise the "new" behavior of counting it as one object is maintained. If we want it to always count as multiple, then a symbolic call graph is needed.