Skip to content

Commit

Permalink
ASCII art
Browse files Browse the repository at this point in the history
  • Loading branch information
acl-cqc committed Feb 5, 2024
1 parent 6738234 commit 61b2694
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/hugr/rewrite/inline_dfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,29 @@ mod test {

#[test]
fn order_edges() -> Result<(), Box<dyn std::error::Error>> {
/* -----|-----|-----
* | |
* H_a H_b
* |. / NB. Order edge H_a to nested DFG
* | . |
* | /-|--------\
* | | | . Cst | NB. Order edge Input to LCst
* | | | . | |
* | | | LCst |
* | | \ / |
* | | RZ |
* | | | |
* | | meas |
* | | | \ |
* | | | if |
* | | | . | NB. State edge if to Output
* | \--|-------/
* | . |
* | . | NB. Order edge nested DFG to H_a2
* H_a2 /
* \ /
* CX
*/
let delta = ExtensionSet::from_iter([float_types::EXTENSION_ID]);
// Extension inference here relies on quantum ops not requiring their own test_quantum_extension
let reg = ExtensionRegistry::try_new([
Expand Down

0 comments on commit 61b2694

Please sign in to comment.