You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
graph LR
subgraph 0 ["(0) DFG"]
direction LR
1["(1) Input"]
1--"0:0<br>[]+[]"-->3
2["(2) Output"]
3["(3) logic.Not"]
3--"0:0<br>[]+[]"-->4
3--"0:0<br>[]+[]"-->5
4["(4) logic.Not"]
4--"0:0<br>[]+[]"-->2
5["(5) logic.Not"]
5--"0:1<br>[]+[]"-->2
end
Loading
I wrote a simple replacement to replace all the nots with an empty diagram, copying the input bool to the outputs.
This throws an error:
thread 'hugr::rewrite::simple_replace::test::test_copy_inputs' panicked at hugr-core/src/hugr/rewrite/simple_replace.rs:610:92:
called `Option::unwrap()` on a `None` value
Adds a pass for removing tuple packs immediately followed by tuple
unpacks.
Currently this only removes one-to-one connections.
The code should work for one-to-many, but there's a bug in hugr's
`SimpleRewrite` that prevents us from having replacements where multiple
outputs are connected to a single input.
See CQCL/hugr#1190.
Closes#380
Given this hugr:
I wrote a simple replacement to replace all the nots with an empty diagram, copying the input bool to the outputs.
This throws an error:
see the failing test case here
hugr/hugr-core/src/hugr/rewrite/simple_replace.rs
Line 615 in 6dbdbb0
The text was updated successfully, but these errors were encountered: