genStateString | R Documentation |
function to generate the string for a specific basis state
genStateString(int, nbits, collapse = "")
int |
integer number representing the basis state |
nbits |
integer. The number of qubits |
collapse |
character. String to fill in between separate bits |
a character
genStateString(5, 4)
genStateString(2, 2, collapse=">|")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.