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
import json
from bartiq import Routine, compile_routine, evaluate
from bartiq.integrations import qref_to_bartiq
with open("docs/data/alias_sampling_basic.json", "r") as f:
routine_dict = json.load(f)
uncompiled_routine = qref_to_bartiq(routine_dict)
compiled_routine = compile_routine(uncompiled_routine)
And inspecting swap:
compiled_routine.children["swap"]
I get the following result:
These P_1 and P_2 are not defined anywhere, they are placeholder variables coming from the passthroughs. At this stage they should have been replaced by real values coming from ports they're connected to, but something went wrong.
This might get resolved while working on #18 , but if not, needs to be fixed after it's resolved.
I was using bartiq==0.2.0.
The text was updated successfully, but these errors were encountered:
When running basic tutorial as part of #76 with new verification, I got the following warning from verifying compiled routine:
/Users/mstechly/Documents/code/2024-06-04-18-validation/bartiq/src/bartiq/compilation/_compile.py:117: UserWarning: Found the following issues with the provided routine after the compilation has finished: ["Symbol n_b found in subroutine: my_algorithm.B, which is not among top level params: {'n', 'z'}."]
Here similarly, the n_b does not get compiled out – it might be the same or related bug.
After running the following piece of code:
And inspecting
swap
:I get the following result:
These
P_1
andP_2
are not defined anywhere, they are placeholder variables coming from the passthroughs. At this stage they should have been replaced by real values coming from ports they're connected to, but something went wrong.This might get resolved while working on #18 , but if not, needs to be fixed after it's resolved.
I was using
bartiq==0.2.0
.The text was updated successfully, but these errors were encountered: