|
| | StateVectorSparse (bitCapIntOcl cap) |
| |
| size_t | size () |
| |
| void | mult (real1_f nrm) |
| |
| real1_f | truncate_to_size (size_t maxAmps) |
| |
| complex | read (const bitCapIntOcl &i) |
| |
| void | write (const bitCapIntOcl &i, const complex &c) |
| |
| void | write2 (const bitCapIntOcl &i1, const complex &c1, const bitCapIntOcl &i2, const complex &c2) |
| | Optimized "write" that is only guaranteed to write if either amplitude is nonzero. More...
|
| |
| void | clear () |
| |
| void | copy_in (const complex *copyIn) |
| |
| void | copy_in (const complex *copyIn, const bitCapIntOcl offset, const bitCapIntOcl length) |
| |
| void | copy_in (StateVectorPtr copyInSv, const bitCapIntOcl srcOffset, const bitCapIntOcl dstOffset, const bitCapIntOcl length) |
| |
| void | copy_out (complex *copyOut) |
| |
| void | copy_out (complex *copyOut, const bitCapIntOcl offset, const bitCapIntOcl length) |
| |
| void | copy (const StateVectorPtr toCopy) |
| |
| void | copy (StateVectorSparsePtr toCopy) |
| |
| void | shuffle (StateVectorPtr svp) |
| |
| void | shuffle (StateVectorSparsePtr svp) |
| |
| void | get_probs (real1 *outArray) |
| |
| bool | is_sparse () |
| |
| std::vector< bitCapIntOcl > | iterable () |
| |
| std::set< bitCapIntOcl > | iterable (const bitCapIntOcl &setMask, const bitCapIntOcl &filterMask=0, const bitCapIntOcl &filterValues=0) |
| | Returns empty if iteration should be over full set, otherwise just the iterable elements: More...
|
| |
| | StateVector (bitCapIntOcl cap) |
| |
| virtual | ~StateVector () |
| |
| | ParallelFor () |
| |
| void | SetConcurrencyLevel (unsigned num) |
| |
| unsigned | GetConcurrencyLevel () |
| |
| bitCapIntOcl | GetStride () |
| |
| bitLenInt | GetPreferredConcurrencyPower () |
| |
| 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 incrementation offset through 'inc'. More...
|
| |
| void | par_for (const bitCapIntOcl begin, const bitCapIntOcl end, ParallelFunc fn) |
| | Call fn once for every numerical value between begin and end. More...
|
| |
| void | par_for_skip (const bitCapIntOcl begin, const bitCapIntOcl end, const bitCapIntOcl skipPower, const bitLenInt skipBitCount, ParallelFunc fn) |
| | Skip over the skipPower bits. More...
|
| |
| 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. More...
|
| |
| void | par_for_set (const std::set< bitCapIntOcl > &sparseSet, ParallelFunc fn) |
| | Iterate over a sparse state vector. More...
|
| |
| void | par_for_set (const std::vector< bitCapIntOcl > &sparseSet, ParallelFunc fn) |
| | Iterate over a sparse state vector. More...
|
| |
| 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. More...
|
| |
| 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). More...
|
| |
| real1_f | par_norm_exact (const bitCapIntOcl maxQPower, const StateVectorPtr stateArray) |
| | Calculate the normal for the array, (without flooring.) More...
|
| |