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

ZeroState breaks t_complexity #1358

Closed
matthagan15 opened this issue Aug 28, 2024 · 2 comments
Closed

ZeroState breaks t_complexity #1358

matthagan15 opened this issue Aug 28, 2024 · 2 comments

Comments

@matthagan15
Copy link
Contributor

Have a bloq with a ZeroState bloq and running t_complexity gives this:

TypeError: couldn't compute TComplexity of:
type: <class 'qualtran.bloqs.basic_gates.z_basis.ZeroState'>
value: ZeroState

@mpharrigan
Copy link
Collaborator

mpharrigan commented Aug 28, 2024

Thanks. This is a subset of #1225 . It was fixed for get_cost_value(bloq, QECGatesCost()) in #1323 . That fix will make its way to the bloq.t_complexity() method with #1359

@mpharrigan
Copy link
Collaborator

Fixed in #1359

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

No branches or pull requests

2 participants