Description Usage Arguments Value Examples
function to generate the basis strings for given number of bits
1 | genComputationalBasis(nbits, collapse = "")
|
nbits |
integer. The number of qubits |
collapse |
character. String to fill in between separate bits |
a character vector of length 2^nbits
1 2 | genComputationalBasis(4)
genComputationalBasis(2, collapse=">|")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.