Skip to content

Remove t_complexity from comparison bloqs #996

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

Merged
merged 4 commits into from
May 29, 2024

Conversation

dstrain115
Copy link
Contributor

  • These bloqs already had call graphs.
  • Also fix them to pick up the number of cliffords from the other bloqs.

- These bloqs already had call graphs.
- Also fix them to pick up the number of cliffords from the other
bloqs.
Comment on lines 873 to 874
tc = t_complexity(LessThanConstant(self.bitsize, less_than_val=self.val))
return {(TGate(), tc.t)}
return {(TGate(), tc.t), (ArbitraryClifford(n=1), tc.clifford)}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be just return {(LessThanConstant(self.bitsize, less_than_val=self.val), 1)}?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I didn't know you could do that, but it makes sense. I'll change it!

@dstrain115 dstrain115 merged commit 6c38eed into quantumlib:main May 29, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants