genStateNumber: genStateNumber

Description Usage Arguments Value Examples

View source: R/state.R

Description

function to generate the bit representation for a specific basis state

Usage

1
genStateNumber(int, nbits)

Arguments

int

integer number representing the basis state

nbits

integer. The number of qubits

Value

a integer vector of length nbits

Examples

1
2

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