68 bool IsX(
bool randGlobalPhase =
true)
74 bool IsY(
bool randGlobalPhase =
true)
80 bool IsZ(
bool randGlobalPhase =
true)
GLOSSARY: bitLenInt - "bit-length integer" - unsigned integer ID of qubit position in register bitCap...
Definition: complex16x2simd.hpp:25
QRACK_CONST real1 SQRT1_2_R1
Definition: qrack_types.hpp:180
void mul2x2(const complex *left, const complex *right, complex *out)
Definition: functions.cpp:111
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
std::complex< real1 > complex
Definition: qrack_types.hpp:128
QRACK_CONST real1 FP_NORM_EPSILON
Definition: qrack_types.hpp:258
double norm(const complex2 &c)
Definition: complex16x2simd.hpp:101
QRACK_CONST complex ONE_CMPLX
Definition: qrack_types.hpp:252
QRACK_CONST real1 ZERO_R1
Definition: qrack_types.hpp:183
std::shared_ptr< MpsShard > MpsShardPtr
Definition: mpsshard.hpp:18
QRACK_CONST complex ZERO_CMPLX
Definition: qrack_types.hpp:253
HALF_CONSTEXPR half abs(half arg)
Absolute value.
Definition: half.hpp:2975
Definition: mpsshard.hpp:21
bool IsInvert()
Definition: mpsshard.hpp:54
bool IsPhase()
Definition: mpsshard.hpp:52
MpsShard()
Definition: mpsshard.hpp:24
bool IsIdentity()
Definition: mpsshard.hpp:66
void Compose(const complex *g)
Definition: mpsshard.hpp:34
MpsShardPtr Clone()
Definition: mpsshard.hpp:32
MpsShard(const complex *g)
Definition: mpsshard.hpp:30
complex gate[4U]
Definition: mpsshard.hpp:22
bool IsH()
Definition: mpsshard.hpp:86
bool IsZ(bool randGlobalPhase=true)
Definition: mpsshard.hpp:80
bool IsX(bool randGlobalPhase=true)
Definition: mpsshard.hpp:68
bool IsHInvert()
Definition: mpsshard.hpp:61
bool IsY(bool randGlobalPhase=true)
Definition: mpsshard.hpp:74
bool IsHPhase()
Definition: mpsshard.hpp:56