Microsoft Liquid: how to show the current quantum state

I program quantum algorithms in Microsoft Liquid (F #). For debugging, it would be very 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 confused. However, if it is confused, is there a way to show the current quantum state, for example:

ket = 1/sqrt(2)*[|00>+|11>]
+4
source share

Source: https://habr.com/ru/post/1690190/


All Articles