genStateString: genStateString

Description Usage Arguments Value Examples

View source: R/state.R

Description

function to generate the string for a specific basis state

Usage

1
genStateString(int, nbits, collapse = "")

Arguments

int

integer number representing the basis state

nbits

integer. The number of qubits

collapse

character. String to fill in between separate bits

Value

a character

Examples

1
2
genStateString(5, 4)
genStateString(2, 2, collapse=">|")

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