I am programming quantum algorithms in Microsoft Liquid (F#). For debugging, it would be really nice to see what the current quantum state is.
I can use:
for q in qs do show "q[%d]=%s" q.Id (q.ToString())
where qs is my list of qubits, but this only works if the state is not entangled.
However, if it is entangled, is there a way to just show the current quantum state, e.g.:
ket = 1/sqrt(2)*[|00>+|11>]
The Ket.Dump method will print a nicely formatted state vector to the console:
See http://stationq.github.io/Liquid/docs/html/aecdd029-bf0a-3e8f-3c2b-348802584d85.htm and http://stationq.github.io/Liquid/docs/html/56e790bd-3150-17ca-adac-0b91ecf9ef7e.htm.