40 typedef std::function<void(const bitCapInt, const int cpu)>
ParallelFunc;
41 typedef std::function<bitCapInt(const bitCapInt, const int cpu)>
IncrementFunc;
61 const bitLenInt skipBitCount, ParallelFunc fn);
std::function< bitCapInt(const bitCapInt, const int cpu)> IncrementFunc
Definition: parallel_for.hpp:41
int32_t numCores
Definition: parallel_for.hpp:24
virtual ~ParallelFor()
Definition: parallel_for.hpp:31
Definition: parallel_for.hpp:22
void par_for_mask(const bitCapInt, const bitCapInt, const bitCapInt *maskArray, const bitLenInt maskLen, ParallelFunc fn)
Skip over the bits listed in maskArray in the same fashion as par_for_skip.
Definition: parallel_for.cpp:129
void SetConcurrencyLevel(int32_t num)
Definition: parallel_for.hpp:33
void par_for_skip(const bitCapInt begin, const bitCapInt end, const bitCapInt skipPower, const bitLenInt skipBitCount, ParallelFunc fn)
Skip over the skipPower bits.
Definition: parallel_for.cpp:96
#define real1
Definition: qinterface.hpp:36
ParallelFor()
Definition: parallel_for.hpp:27
void par_for_inc(const bitCapInt begin, const bitCapInt 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:25
void par_for(const bitCapInt begin, const bitCapInt end, ParallelFunc fn)
Call fn once for every numerical value between begin and end.
Definition: parallel_for.cpp:91
real1 par_norm(const bitCapInt maxQPower, const complex *stateArray)
Calculate the normal for the array.
Definition: parallel_for.cpp:166
#define complex
Definition: qinterface.hpp:35
std::function< void(const bitCapInt, const int cpu)> ParallelFunc
Called once per value between begin and end.
Definition: parallel_for.hpp:40
#define bitCapInt
Definition: qinterface.hpp:22
#define bitLenInt
Definition: qinterface.hpp:21
int32_t GetConcurrencyLevel()
Definition: parallel_for.hpp:34
Definition: complex16simd.hpp:21