genStateNumber | R Documentation |
function to generate the bit representation for a specific basis state
genStateNumber(int, nbits)
int |
integer number representing the basis state |
nbits |
integer. The number of qubits |
a integer vector of length nbits
genStateNumber(5, 4)
genStateNumber(2, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.