powered by
Generates a random ket by selecting random polar coordinates (theta,phi) for each. Approach taken from <DOI:10.1103/PhysRevA.95.062338>.
ranket(n)
Number of qubits in generated get
A ket with a randomized state
# NOT RUN { ranket(4) # }
Run the code above in your browser using DataLab