79 void par_for_sparse_compose(
const std::vector<bitCapIntOcl>& lowSet,
const std::vector<bitCapIntOcl>& highSet,
Definition: parallel_for.hpp:19
void par_for_mask(const bitCapIntOcl, const bitCapIntOcl, const std::vector< bitCapIntOcl > &maskArray, ParallelFunc fn)
Skip over the bits listed in maskArray in the same fashion as par_for_skip.
Definition: parallel_for.cpp:133
real1_f par_norm_exact(const bitCapIntOcl maxQPower, const StateVectorPtr stateArray)
Calculate the normal for the array, (without flooring.)
Definition: parallel_for.cpp:350
ParallelFor()
Definition: parallel_for.cpp:32
unsigned GetConcurrencyLevel()
Definition: parallel_for.hpp:41
const bitCapIntOcl pStride
Definition: parallel_for.hpp:21
bitLenInt GetPreferredConcurrencyPower()
Definition: parallel_for.hpp:43
bitLenInt dispatchThreshold
Definition: parallel_for.hpp:22
bitCapIntOcl GetStride()
Definition: parallel_for.hpp:42
void SetConcurrencyLevel(unsigned num)
Definition: parallel_for.hpp:28
void par_for_set(const std::set< bitCapIntOcl > &sparseSet, ParallelFunc fn)
Iterate over a sparse state vector.
Definition: parallel_for.cpp:56
void par_for_skip(const bitCapIntOcl begin, const bitCapIntOcl end, const bitCapIntOcl skipPower, const bitLenInt skipBitCount, ParallelFunc fn)
Skip over the skipPower bits.
Definition: parallel_for.cpp:100
void par_for_sparse_compose(const std::vector< bitCapIntOcl > &lowSet, const std::vector< bitCapIntOcl > &highSet, const bitLenInt &highStart, ParallelFunc fn)
Iterate over the power set of 2 sparse state vectors.
Definition: parallel_for.cpp:80
void par_for(const bitCapIntOcl begin, const bitCapIntOcl end, ParallelFunc fn)
Call fn once for every numerical value between begin and end.
Definition: parallel_for.cpp:50
real1_f par_norm(const bitCapIntOcl maxQPower, const StateVectorPtr stateArray, real1_f norm_thresh=ZERO_R1_F)
Calculate the normal for the array, (with flooring).
Definition: parallel_for.cpp:333
unsigned numCores
Definition: parallel_for.hpp:23
void par_for_inc(const bitCapIntOcl begin, const bitCapIntOcl itemCount, IncrementFunc, ParallelFunc fn)
Iterate through the permutations a maximum of end-begin times, allowing the caller to control the inc...
Definition: parallel_for.cpp:324
GLOSSARY: bitLenInt - "bit-length integer" - unsigned integer ID of qubit position in register bitCap...
Definition: complex16x2simd.hpp:25
bitLenInt log2Ocl(bitCapIntOcl n)
Definition: qrack_functions.hpp:88
std::function< bitCapIntOcl(const bitCapIntOcl &)> IncrementFunc
Definition: qrack_types.hpp:137
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
float real1_f
Definition: qrack_types.hpp:95
std::function< void(const bitCapIntOcl &, const unsigned &cpu)> ParallelFunc
Definition: qrack_types.hpp:136
std::shared_ptr< StateVector > StateVectorPtr
Definition: qrack_types.hpp:143
bitCapIntOcl pow2Ocl(const bitLenInt &p)
Definition: qrack_functions.hpp:137
#define bitLenInt
Definition: qrack_types.hpp:38
#define ZERO_R1_F
Definition: qrack_types.hpp:160
#define bitCapIntOcl
Definition: qrack_types.hpp:50