Skip to content
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

Introduce types to t_complexity #835

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mpharrigan
Copy link
Collaborator

Everything is a bloq now, so we can indicate that with types in the t_complexity function. It will now duck-type for bloqs. There are some tests that still want to find the t complexity of things that contain bloqs, so I added a _compat version. I moved all the places where you literally need to get the TComplexity to a gate to explicit calls to _from_directly_countable (now with a _cirq suffix) so its more explicit where these values are coming from.

Depends on #825

@mpharrigan mpharrigan changed the title Introduce types to t_complexity Introduce types to t_complexity Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant