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
Simulators know their underlying state. Users should be able to query this state within guppy code for debugging purposes.
Because of the following:
a point in guppy code one might not be aware of all of the currently allocated qubits, e.g. in recursion (the number of allocated qubits might depend on the current recursion level)
the user will also want to specify some ordering of qubits
it isn't generally valid to trace out unrequested qubits
This should output the state with the Most* Significant Bit representing q1, the second Most Significant Bit representing q2. Any other qubits will occupy further bits.
*or least, I have no preference.
The text was updated successfully, but these errors were encountered:
If we are representing the state as a dictionary rather than a vector then the MSB/LSB question becomes moot. We just preserve the order of the qubits in each of the keys of the dictionary.
Simulators know their underlying state. Users should be able to query this state within guppy code for debugging purposes.
Because of the following:
Then it makes sense to make the call look like:
This should output the state with the Most* Significant Bit representing q1, the second Most Significant Bit representing q2. Any other qubits will occupy further bits.
*or least, I have no preference.
The text was updated successfully, but these errors were encountered: