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
Result function introduced in #271 generates correct HUGR for quantum measurements, such as, result(0, measure(q)), but not for a program like the following:
mod=GuppyModule("main")
mod.load(quantum)
@guppy(mod)defmain() ->None:
a=1+2# noqa: F841result(0, a)
The text was updated successfully, but these errors were encountered:
I think this is because the result function introduced in #271 doesn't yet conform to the new results extension spec from CQCL/tket2#494. See issue #369
For now, you should be able to make validation pass by not including thetket2_hseries::extension::result extension in the registry.
Fixes#369 and fixes#365.
Make Guppy conform with the latest results spec introduced in
CQCL/tket2#494
BREAKING CHANGE:
* Result tags are now strings instead of ints
* Only numeric values and arrays thereof are allowed as results
Result function introduced in #271 generates correct HUGR for quantum measurements, such as,
result(0, measure(q))
, but not for a program like the following:The text was updated successfully, but these errors were encountered: