Description Usage Arguments Value Examples
Generates a random ket by selecting random polar coordinates (theta,phi) for each. Approach taken from <DOI:10.1103/PhysRevA.95.062338>.
1 | ranket(n)
|
n |
Number of qubits in generated get |
A ket with a randomized state
1 | ranket(4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.