#include <statevector.hpp>
|
| StateVectorArray (bitCapIntOcl cap) |
|
virtual | ~StateVectorArray () |
|
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 (complex const *copyIn) |
|
void | copy_in (complex const *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 (StateVectorPtr toCopy) |
|
void | copy (StateVectorArrayPtr toCopy) |
|
void | shuffle (StateVectorPtr svp) |
|
void | shuffle (StateVectorArrayPtr svp) |
|
void | get_probs (real1 *outArray) |
|
bool | is_sparse () |
|
| StateVector (bitCapIntOcl cap) |
|
virtual | ~StateVector () |
|
◆ StateVectorArray()
Qrack::StateVectorArray::StateVectorArray |
( |
bitCapIntOcl |
cap | ) |
|
|
inline |
◆ ~StateVectorArray()
virtual Qrack::StateVectorArray::~StateVectorArray |
( |
| ) |
|
|
inlinevirtual |
◆ Alloc()
◆ clear()
void Qrack::StateVectorArray::clear |
( |
| ) |
|
|
inlinevirtual |
◆ copy() [1/2]
◆ copy() [2/2]
◆ copy_in() [1/3]
void Qrack::StateVectorArray::copy_in |
( |
complex const * |
copyIn | ) |
|
|
inlinevirtual |
◆ copy_in() [2/3]
◆ copy_in() [3/3]
◆ copy_out() [1/2]
void Qrack::StateVectorArray::copy_out |
( |
complex * |
copyOut | ) |
|
|
inlinevirtual |
◆ copy_out() [2/2]
◆ Free()
virtual void Qrack::StateVectorArray::Free |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ get_probs()
void Qrack::StateVectorArray::get_probs |
( |
real1 * |
outArray | ) |
|
|
inlinevirtual |
◆ is_sparse()
bool Qrack::StateVectorArray::is_sparse |
( |
| ) |
|
|
inlinevirtual |
◆ normHelper()
static real1_f Qrack::StateVectorArray::normHelper |
( |
const complex & |
c | ) |
|
|
inlinestaticprotected |
◆ read()
◆ shuffle() [1/2]
◆ shuffle() [2/2]
◆ write()
◆ write2()
Optimized "write" that is only guaranteed to write if either amplitude is nonzero.
(Useful for the result of 2x2 tensor slicing.)
Implements Qrack::StateVector.
◆ amplitudes
std::unique_ptr<complex[], void (*)(complex*)> Qrack::StateVectorArray::amplitudes |
The documentation for this class was generated from the following file: