-
Notifications
You must be signed in to change notification settings - Fork 7
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
Can't define a circuit with constant parameters #1166
Labels
bug
Something isn't working
Comments
If we swap the |
#1142 fixes this, if we add a I would suggest that the error we give the user (in this case, me) for a missing extension delta in the function definition is not helpful.
|
This was referenced Jun 6, 2024
github-merge-queue bot
pushed a commit
to CQCL/tket2
that referenced
this issue
Jun 6, 2024
Closes #105. Closes #108. `num_gates` used to count every node in the top-level region, giving unexpected results on results with constants, control flow, or anything other than simple gates. `num_operations` now only counts `CustomOp`s, traversing containers as needed. I also improved the circuit unit tests, to include circuits in modules and circuits in `FuncDefn`s (instead of `DFG`s). Some notes: - Part of the tests testing parametric operations is commented out until we solve CQCL/hugr#1166. - Although the test circuits have function names, `Circuit::name` returns `None`. I'll address that in another PR.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following test case defines a simple circuit:
which corresponds to
However, it fails at validation time with a
SrcExceedsTgtExtension
error:I reduced this error from a larger hugr definition of a circuit inside a module, which failed with a
MismatchedConcreteWithLocations
instead.The text was updated successfully, but these errors were encountered: