CQCL / hugr

Hierarchical Unified Graph Representation for quantum and classical programs
https://crates.io/crates/hugr
Apache License 2.0
17 stars 5 forks source link

Convert Conditional/TailLoop-shaped CFGs into dataflow #818

Open acl-cqc opened 7 months ago

acl-cqc commented 7 months ago

CFGs that are already of appropriately simple shape can be transformed easily with the contents of each basic block placed into the corresponding Case (or the body of the TailLoop), etc.

cqc-alec commented 4 months ago

See https://github.com/CQCL/hugr/issues/561#issuecomment-2088227333 .