genComputationalBasis | R Documentation |
function to generate the basis strings for given number of bits
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
genComputationalBasis(4)
genComputationalBasis(2, collapse=">|")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.