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
{{ message }}
Repository navigation
optimise writes a .lif that the parser will not read back #1
There are two separate problems in there. I checked them one at a time.
The lexer does tokenize ^bb0, it produces CaretIdent at lexer.rs:229. The parser
has no rule that accepts it as a statement.
If I delete the ^bb0 line by hand, the parse gets past that point and then fails
with "Undefined value: %v2". The block arguments declared on the ^bb0 line are
what the body refers to, while the function signature above declares %v0 and %v1,
so removing the line leaves the body pointing at names that no longer exist.
The printer also drops the "#dialect quantum" header that the input had. Adding
that back on its own does not help. I tried it, ^bb0 is what blocks the parse.
So round tripping through a file does not work at the moment for any input, as
far as I can tell. Everything I found about the optimisation passes had to be
done through the library instead.
Activity
fix: correctness audit — gate cancellation, scheduling, shape inferen…