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>]