genComputationalBasis {qsimulatR} | R Documentation |
genComputationalBasis
Description
function to generate the basis strings for given number of bits
Usage
genComputationalBasis(nbits, collapse = "")
Arguments
nbits |
integer. The number of qubits |
collapse |
character. String to fill in between separate bits |
Value
a character vector of length 2^nbits
Examples
genComputationalBasis(4)
genComputationalBasis(2, collapse=">|")
[Package qsimulatR version 1.1.1 Index]