-
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
Rename NotADag
#137
Comments
That's a bug in the Dag checker with multiports 😅. I have a fix in the works. |
If it's a bug in the DAG checker then it's also a documentation bug: #[error("The children of an operation {optype:?} must form a dag with single source and sink. Loops are not allowed, nor are dangling nodes not in the path between the input and output. In node {node:?}.")]
NotADag { node: Node, optype: OpType }, (The docs already imply that there are more conditions than not being a DAG.) |
The "single source and sink" requirement is an special kind of DAG. I think we are still in the |
Just seems odd to get an error called |
Fair enough. I'd go with something more specific rather than more generic tough, |
Hmm... https://cs.stackexchange.com/questions/67849/what-do-you-call-a-dag-with-a-single-root-source How about |
Closes #136 drive-by: cargo update (hugr 0.13.2) I have tested the test in quantinuum-dev/guppy-integration#19 now passes and the example has expected behaviour with crz oracle.
## 🤖 New release * `hugr-llvm`: 0.6.0 -> 0.6.1 (✓ API compatible changes) <details><summary><i><b>Changelog</b></i></summary><p> <blockquote> ## [0.6.1](CQCL/hugr-llvm@v0.6.0...v0.6.1) - 2024-10-23 ### Bug Fixes - don't normalise half turns ([#137](CQCL/hugr-llvm#137)) </blockquote> </p></details> --- This PR was generated with [release-plz](https://github.com/MarcoIeni/release-plz/).
Closes #136 drive-by: cargo update (hugr 0.13.2) I have tested the test in quantinuum-dev/guppy-integration#19 now passes and the example has expected behaviour with crz oracle.
* `hugr-llvm`: 0.6.0 -> 0.6.1 (✓ API compatible changes) <details><summary><i><b>Changelog</b></i></summary><p> <blockquote> 2024-10-23 - don't normalise half turns ([#137](CQCL/hugr-llvm#137)) </blockquote> </p></details> --- This PR was generated with [release-plz](https://github.com/MarcoIeni/release-plz/).
Validation can fail for reasons other than not being a directed acyclic graph, so the name is misleading. Perhaps
InvalidGraph
?The text was updated successfully, but these errors were encountered: