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
The following program incorrectly fails linearity checking:
@guppy.struct(module)classMyStruct:
q: qubit@guppy.declare(module)defuse(q: qubit) ->None: ...
@guppy(module)deftest(s: MyStruct) ->MyStruct:
use(s.q)
whileTrue:
s.q=qubit()
returns# Guppy is not yet smart enough to detect that this code is unreachables.q=qubit()
returns
The text was updated successfully, but these errors were encountered:
Fixes#438.
When checking that all live linear places in scope are definitely used,
we have to be more careful about determining whether variables are
*actually* live rather than only being included in scope because of the
less precise first pass of liveness analysis.
The following program incorrectly fails linearity checking:
The text was updated successfully, but these errors were encountered: