genComputationalBasis: genComputationalBasis

Description Usage Arguments Value Examples

View source: R/state.R

Description

function to generate the basis strings for given number of bits

Usage

1
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

1
2

qsimulatR documentation built on Jan. 13, 2021, 3:13 p.m.