35 typedef std::vector<bitLenInt>::iterator
iterator;
47 if ((perm >> i) & 1U) {
58 if ((perm >>
swapMap[i]) & 1U) {
Definition: qubitswapmap.hpp:17
void swap(bitLenInt qubit1, bitLenInt qubit2)
Definition: qubitswapmap.hpp:41
QubitSwapMap()
Definition: qubitswapmap.hpp:22
bitLenInt size()
Definition: qubitswapmap.hpp:39
bitCapInt map(const bitCapInt &perm)
Definition: qubitswapmap.hpp:43
std::vector< bitLenInt > swapMap
Definition: qubitswapmap.hpp:19
QubitSwapMap(bitLenInt qubitCount)
Definition: qubitswapmap.hpp:27
bitCapInt inverseMap(const bitCapInt &perm)
Definition: qubitswapmap.hpp:54
bitLenInt & operator[](const bitLenInt &i)
Definition: qubitswapmap.hpp:37
std::vector< bitLenInt >::iterator iterator
Definition: qubitswapmap.hpp:35
GLOSSARY: bitLenInt - "bit-length integer" - unsigned integer ID of qubit position in register bitCap...
Definition: complex16x2simd.hpp:25
void U(quid sid, bitLenInt q, real1_f theta, real1_f phi, real1_f lambda)
(External API) 3-parameter unitary gate
Definition: wasm_api.cpp:1143
const bitCapInt ONE_BCI
Definition: qrack_types.hpp:129
#define bitLenInt
Definition: qrack_types.hpp:38
#define bitCapInt
Definition: qrack_types.hpp:62