Stack machine2/missing - #100
Draft
acl-cqc wants to merge 63 commits into
Draft
Conversation
This reverts commit 99a7416.
…ange GraphInfo tuple->record
acl-cqc
force-pushed
the
stack_machine2/missing
branch
from
January 9, 2026 17:42
6e8cd0a to
5d31870
Compare
acl-cqc
force-pushed
the
acl/stack_machine2
branch
2 times, most recently
from
April 17, 2026 14:13
86b77ea to
3aea4e8
Compare
acl-cqc
added a commit
that referenced
this pull request
Apr 24, 2026
…e tests (#99) A few old commits moved out into #100. * Rework the Hugr compiler to compile only Kernel boxes; `Compiler.hs` (`brat -c`) calls this only for Kernel boxes that are inputs to the Id nodes of top-level decls. "compile" produces a Hugr + list of splices, where each splice is (the NodeId of a Hole op in the hugr, OutPort from BratGraph) - not using the "index" of the Hole op here. * Add `Machine.hs` with interpreter (commandline `--run <func>`). For Hugrs, this also evaluates the outports and performs the splices using routines from #98, and returns the final Hugr in JSON form. * Includes reworking test framework to specify which tests are xfailed for parsing/compilation, and allowing to specify expected outputs from the interpreter (or that the output should be hugr-validated) *in the test file* (`examples/*.brat`). We could do with a full audit of the testsuite after this but not done here. * Minor fixes: `solveVal` wiring, bad type in `adder.brat` * Also add `CFull`; `Dummy` graph node; `hugrRotation`, Hugr float extension, CR(x/y/z); HugrGraph root->getRoot+getNodes --------- Co-authored-by: Craig Roy <craig.roy@quantinuum.com> Co-authored-by: Conor McBride <conor.mcbride@quantinuum.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some bits of #88 pulled out when making #99 (now less bits: a
WIPPR and some tracing)