Microsoft Liquid: How to show the current quantum state

187 Views Asked by At

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

There are 1 best solutions below

0
Alan Geller On

Related Questions in F#