|
Qrack
10.0
General classical-emulating-quantum development framework
|

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 | IS_REAL_1(r) (abs(ONE_R1 - r) <= FP_NORM_EPSILON) |
| #define | IS_CTRLED_CLIFFORD(top, bottom) ((IS_REAL_1(std::real(top)) || IS_REAL_1(std::imag(bottom))) && (IS_SAME(top, bottom) || IS_SAME(top, -bottom))) |
| #define | IS_CLIFFORD_PHASE_INVERT(top, bottom) (IS_SAME(top, bottom) || IS_SAME(top, -bottom) || IS_SAME(top, I_CMPLX * bottom) || IS_SAME(top, -I_CMPLX * bottom)) |
| #define | IS_CLIFFORD(mtrx) |
| #define | IS_PHASE(mtrx) (IS_NORM_0(mtrx[1U]) && IS_NORM_0(mtrx[2U])) |
| #define | IS_INVERT(mtrx) (IS_NORM_0(mtrx[0U]) && IS_NORM_0(mtrx[3U])) |
| #define | ADD_SHOT_PROB(m) |
| #define | CHECK_NARROW_SHOT() |
| #define | CHECK_WIDE_SHOT(j, k) |
| #define | FIX_OVERPROB_SHOT_AND_FINISH() |
| #define | FILL_REMAINING_MAP_SHOTS() |
| #define | ADD_SHOTS_PROB(m) |
| #define | CHECK_SHOTS(m, lm) |
| #define | CHECK_SHOTS_IF_ANY(m, lm) |
| #define | FILL_REMAINING_ARRAY_SHOTS() |
Functions | |
| std::ostream & | Qrack::operator<< (std::ostream &os, const QStabilizerHybridPtr s) |
| std::istream & | Qrack::operator>> (std::istream &is, const QStabilizerHybridPtr s) |
| #define ADD_SHOT_PROB | ( | m | ) |
| #define ADD_SHOTS_PROB | ( | m | ) |
| #define CHECK_NARROW_SHOT | ( | ) |
| #define CHECK_SHOTS | ( | m, | |
| lm | |||
| ) |
| #define CHECK_SHOTS_IF_ANY | ( | m, | |
| lm | |||
| ) |
| #define CHECK_WIDE_SHOT | ( | j, | |
| k | |||
| ) |
| #define FILL_REMAINING_ARRAY_SHOTS | ( | ) |
| #define FILL_REMAINING_MAP_SHOTS | ( | ) |
| #define FIX_OVERPROB_SHOT_AND_FINISH | ( | ) |
| #define IS_CLIFFORD | ( | mtrx | ) |
| #define IS_CLIFFORD_PHASE_INVERT | ( | top, | |
| bottom | |||
| ) | (IS_SAME(top, bottom) || IS_SAME(top, -bottom) || IS_SAME(top, I_CMPLX * bottom) || IS_SAME(top, -I_CMPLX * bottom)) |
| #define IS_CTRLED_CLIFFORD | ( | top, | |
| bottom | |||
| ) | ((IS_REAL_1(std::real(top)) || IS_REAL_1(std::imag(bottom))) && (IS_SAME(top, bottom) || IS_SAME(top, -bottom))) |
| #define IS_REAL_1 | ( | r | ) | (abs(ONE_R1 - r) <= FP_NORM_EPSILON) |