|
Qrack
1.7
General classical-emulating-quantum development framework
|
Functions | |
| virtual complex * | Qrack::QEngineCPU::GetStateVector () |
| virtual void | Qrack::QEngineCPU::CopyState (QInterfacePtr orig) |
| Direct copy of raw state vector to produce a clone. More... | |
| virtual real1 | Qrack::QEngineCPU::Prob (bitLenInt qubitIndex) |
| PSEUDO-QUANTUM Direct measure of bit probability to be in |1> state. More... | |
| virtual real1 | Qrack::QEngineCPU::ProbAll (bitCapInt fullRegister) |
| PSEUDO-QUANTUM Direct measure of full register probability to be in permutation state. More... | |
| virtual real1 | Qrack::QEngineCPU::GetNorm (bool update=true) |
| virtual void | Qrack::QEngineCPU::SetNorm (real1 n) |
| virtual void | Qrack::QEngineCPU::NormalizeState (real1 nrm=-999.0) |
| virtual void | Qrack::QInterface::CopyState (QInterfacePtr orig)=0 |
| Direct copy of raw state vector to produce a clone. More... | |
| virtual real1 | Qrack::QInterface::Prob (bitLenInt qubitIndex)=0 |
| Direct measure of bit probability to be in |1> state. More... | |
| virtual real1 | Qrack::QInterface::ProbAll (bitCapInt fullRegister)=0 |
| Direct measure of full register probability to be in permutation state. More... | |
| virtual void | Qrack::QInterface::SetBit (bitLenInt qubitIndex1, bool value) |
| Set individual bit to pure |0> (false) or |1> (true) state. More... | |
| virtual bool | Qrack::QInterface::ForceM (bitLenInt qubitIndex, bool result, bool doForce=true, real1 nrmlzr=1.0) |
| Act as though a measurement was applied, except force the result of the measurement. More... | |
| virtual void | Qrack::QUnit::CopyState (QUnitPtr orig) |
| virtual void | Qrack::QUnit::CopyState (QInterfacePtr orig) |
| Direct copy of raw state vector to produce a clone. More... | |
| virtual real1 | Qrack::QUnit::Prob (bitLenInt qubit) |
| Direct measure of bit probability to be in |1> state. More... | |
| virtual real1 | Qrack::QUnit::ProbAll (bitCapInt fullRegister) |
| Direct measure of full register probability to be in permutation state. More... | |
| virtual void | Qrack::QUnit::SetBit (bitLenInt qubit1, bool value) |
| Set individual bit to pure |0> (false) or |1> (true) state. More... | |
|
virtual |
Direct copy of raw state vector to produce a clone.
Implements Qrack::QInterface.
|
virtual |
|
virtual |
Direct copy of raw state vector to produce a clone.
Implements Qrack::QInterface.
|
pure virtual |
Direct copy of raw state vector to produce a clone.
Implemented in Qrack::QUnit, Qrack::QEngineOCLMulti, Qrack::QEngineCPU, and Qrack::QEngineOCL.
|
virtual |
Act as though a measurement was applied, except force the result of the measurement.
Measurement gate.
That is, genuine measurement of a qubit in superposition has a probabilistic result. This method allows the programmer to choose the outcome of the measurement, and proceed as if the measurement randomly resulted in the chosen bit value.
PSEUDO-QUANTUM - Acts like a measurement gate, except with a specified forced result.
|
inlinevirtual |
|
virtual |
|
virtual |
Implements Qrack::QInterface.
PSEUDO-QUANTUM Direct measure of bit probability to be in |1> state.
Implements Qrack::QInterface.
Direct measure of bit probability to be in |1> state.
Implements Qrack::QInterface.
Direct measure of bit probability to be in |1> state.
Implemented in Qrack::QUnit, Qrack::QEngineOCL, Qrack::QEngineOCLMulti, and Qrack::QEngineCPU.
PSEUDO-QUANTUM Direct measure of full register probability to be in permutation state.
Implements Qrack::QInterface.
Direct measure of full register probability to be in permutation state.
Implements Qrack::QInterface.
Direct measure of full register probability to be in permutation state.
Implemented in Qrack::QUnit, Qrack::QEngineOCLMulti, Qrack::QEngineCPU, and Qrack::QEngineOCL.
|
virtual |
Set individual bit to pure |0> (false) or |1> (true) state.
To set a bit, the bit is first measured. If the result of measurement matches "value," the bit is considered set. If the result of measurement is the opposite of "value," an X gate is applied to the bit. The state ends up entirely in the "value" state, with a random phase factor.
Reimplemented from Qrack::QInterface.
|
virtual |
Set individual bit to pure |0> (false) or |1> (true) state.
To set a bit, the bit is first measured. If the result of measurement matches "value," the bit is considered set. If the result of measurement is the opposite of "value," an X gate is applied to the bit. The state ends up entirely in the "value" state, with a random phase factor.
Reimplemented in Qrack::QUnit.
|
inlinevirtual |
1.8.11