Thank you for the explanation. This is exactly what I have expecting. Thanκ you for the elaboration and confirmation that I’m on the right track. If upon measuring measureX
quadrature of some state | \psi \rangle some random variable is obtained, what exactly means the output of 3.04173042 that I’m constantly getting from this piece of code
prog = sf.Program(1)
eng = sf.Engine("fock", backend_options={"cutoff_dim": 20})
with prog.context as q:
Fock(0) | (q[0])
Dgate(1.0) | q[0]
MeasureX | q[0]
results = eng.run(prog)
print(results.samples)
If the random value should be obtained, why I’m getting the same value for each try. Thank you in advance.
Best regards.