#include "qinterface.hpp"
#include <algorithm>
#include <iostream>
#include <iterator>
#include <list>
Go to the source code of this file.
|
| 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.
|
|
◆ __IS_CLIFFORD
#define __IS_CLIFFORD |
( |
|
mtrx | ) |
|
Value:
QRACK_CONST complex I_CMPLX
Definition: qrack_types.hpp:254
MICROSOFT_QUANTUM_DECL void U(_In_ uintq sid, _In_ uintq q, _In_ double theta, _In_ double phi, _In_ double lambda)
(External API) 3-parameter unitary gate
Definition: pinvoke_api.cpp:1562
#define __IS_CLIFFORD_PHASE_INVERT(top, bottom)
Definition: qcircuit.hpp:28
#define __IS_PHASE(mtrx)
Definition: qcircuit.hpp:40
#define __IS_INVERT(mtrx)
Definition: qcircuit.hpp:41
#define __IS_SAME(a, b)
Definition: qcircuit.hpp:24
#define IS_SAME(c1, c2)
Definition: qrack_types.hpp:26
◆ __IS_CLIFFORD_PHASE_INVERT
#define __IS_CLIFFORD_PHASE_INVERT |
( |
|
top, |
|
|
|
bottom |
|
) |
| |
◆ __IS_CTRLED_CLIFFORD
#define __IS_CTRLED_CLIFFORD |
( |
|
top, |
|
|
|
bottom |
|
) |
| |
Value:
#define __IS_REAL_1(r)
Definition: qcircuit.hpp:23
◆ __IS_INVERT
◆ __IS_PHASE
◆ __IS_REAL_1
#define __IS_REAL_1 |
( |
|
r | ) |
(abs(ONE_R1 - r) <= FP_NORM_EPSILON) |
◆ __IS_SAME
#define __IS_SAME |
( |
|
a, |
|
|
|
b |
|
) |
| (norm((a) - (b)) <= FP_NORM_EPSILON) |
◆ amp_leq_0
#define amp_leq_0 |
( |
|
x | ) |
(norm(x) <= FP_NORM_EPSILON) |