-
Notifications
You must be signed in to change notification settings - Fork 73
Don't silently omit counts from missing callees #1311
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
Conversation
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.
Do we distinguish between atomic bloqs and bloqs where the decomposition failed? Because in the former we treat it as a leaf bloq, and in the latter we cannot compute the correct cost. Is my understanding correct?
qualtran/_infra/controlled.py
Outdated
try: | ||
sub_cg = self.subbloq.build_call_graph(ssa=ssa) | ||
except DecomposeTypeError as e1: | ||
raise DecomposeTypeError(f"Could not build call graph for {self}: {e1}") |
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.
raise from?
If it's a leaf bloq, |
Ah, makes sense, thanks! |
I was going to factor out this change from the fixes i've been making to QECGatesCost but they're somewhat intertwined since this change reveals the failures that need some of the other fixes. Moving to draft |
subsumed by #1313 |
Addresses the buggy part of #1290 by re-raising the error. Better error messages from Controlled(Atomic).