Qrack  9.9
General classical-emulating-quantum development framework
Namespaces | Macros
qengine.cpp File Reference
#include "qengine.hpp"
#include <algorithm>
Include dependency graph for qengine.cpp:

Namespaces

 Qrack
 GLOSSARY: bitLenInt - "bit-length integer" - unsigned integer ID of qubit position in register bitCapInt - "bit-capacity integer" - unsigned integer single-permutation value of a qubit register (typically "big integer") real1 - "real number (1-dimensional)" - floating-point real-valued number complex - "complex number" - floating-point complex-valued number (with two real1 component dimensions) quid - "quantum (simulator) unique identifier" - unsigned integer that indexes and IDs running simulators, circuits, and neurons.
 

Macros

#define _QRACK_QENGINE_SWAP_PREAMBLE()
 

Macro Definition Documentation

◆ _QRACK_QENGINE_SWAP_PREAMBLE

#define _QRACK_QENGINE_SWAP_PREAMBLE ( )
Value:
if (qubit1 == qubit2) { \
return; \
} \
\
if (qubit2 < qubit1) { \
std::swap(qubit1, qubit2); \
}