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
Revise BellState sample to allocate qubits inside the loop instead of resetting them on each iteration, and remove ResetAll from individual Prepare... operations.
#1370
The allocation of the qubits in samples/algorithms/BellState.qs:
// Allocate the two qubits that will be used to create a Bell state.use register =Qubit[2];
should be moved to be the first step in the for-loop farther down in the entry point operation. Then the calls to ResetAll in each of the preparation operations in the rest of the sample can be removed.
The text was updated successfully, but these errors were encountered:
@saram-aman Thanks for your interest! I think usually we don't assign issues externally unless there is ongoing work, so feel free to open a PR. I think your comment on the issue is enough to show other folks you are interested.
Hi @saram-aman,
Are you still working on this issue? Let us know if you ran into any problems with it!
(Such a simple issue with no activity on it for two weeks after expressing the initial interest still reads as "up for grabs" for an external observer.)
The allocation of the qubits in samples/algorithms/BellState.qs:
should be moved to be the first step in the for-loop farther down in the entry point operation. Then the calls to
ResetAll
in each of the preparation operations in the rest of the sample can be removed.The text was updated successfully, but these errors were encountered: