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
One option for extracting out the quantum state from a simulator is to have a log dialect. Backing up a bit from what I proposed in #229 , it could be as simple as bloqade.dialects.log_state(label:str="foo"). The results object from the appropriate simulator would be a StochasticWavefunction where each instance is a seed recording bitstring measurements that occurred up to that point, and the wavefunction state of the qpu at that point.
For example, consider doing some sort of Bell state prep:
Here the dictionaries are a rough representation of the attributes of the appropriate data classes
Other options work too, just being forward-thinking in terms of mid-circuit measurement. debug() could also return the final state, if measurements are not performed. The important thing is to consider the non-physicality of the wavefunction and how this execution differs from what actually happens on hardware-- we cannot directly access or retrieve the wavefunction!!
The text was updated successfully, but these errors were encountered:
Following #229 .
One option for extracting out the quantum state from a simulator is to have a
log
dialect. Backing up a bit from what I proposed in #229 , it could be as simple asbloqade.dialects.log_state(label:str="foo")
. The results object from the appropriate simulator would be aStochasticWavefunction
where each instance is a seed recording bitstring measurements that occurred up to that point, and the wavefunction state of the qpu at that point.For example, consider doing some sort of Bell state prep:
Here the dictionaries are a rough representation of the attributes of the appropriate data classes
Other options work too, just being forward-thinking in terms of mid-circuit measurement. debug() could also return the final state, if measurements are not performed. The important thing is to consider the non-physicality of the wavefunction and how this execution differs from what actually happens on hardware-- we cannot directly access or retrieve the wavefunction!!
The text was updated successfully, but these errors were encountered: