Quantum Phenomena Explorer 7.9.8
Interactive quantum-phenomena Explorer Tutor — source documentation
Loading...
Searching...
No Matches
qpe::anonymous_namespace{coherenttunneling2d.cpp} Namespace Reference

Functions

bool near (double a, double b, double tolerance) noexcept
 Performs near.
 
double safeFraction (double value, double norm) noexcept
 Performs safe fraction.
 
double leftProbabilityForPhase (const BoundStateSpectrum1D &spectrum, int stateA, int stateB, double phase)
 Performs left probability for phase.
 

Variables

constexpr double kPi = 3.141592653589793238462643383279502884
 

Function Documentation

◆ leftProbabilityForPhase()

double qpe::anonymous_namespace{coherenttunneling2d.cpp}::leftProbabilityForPhase ( const BoundStateSpectrum1D & spectrum,
int stateA,
int stateB,
double phase )

Performs left probability for phase.

Parameters
spectrumThe spectrum value used by the operation.
stateAThe state a value used by the operation.
stateBThe state b value used by the operation.
phaseThe phase value used by the operation.

Definition at line 55 of file coherenttunneling2d.cpp.

References qpe::BoundState1D::amplitude, qpe::BoundStateSpectrum1D::dx, leftProbabilityForPhase(), safeFraction(), qpe::BoundStateSpectrum1D::states, qpe::BoundStateSpectrum1D::valid, and qpe::BoundStateSpectrum1D::x.

Referenced by leftProbabilityForPhase().

◆ near()

bool qpe::anonymous_namespace{coherenttunneling2d.cpp}::near ( double a,
double b,
double tolerance )
noexcept

Performs near.

Parameters
aThe a value used by the operation.
bThe b value used by the operation.
toleranceThe tolerance value used by the operation.

Definition at line 33 of file coherenttunneling2d.cpp.

◆ safeFraction()

double qpe::anonymous_namespace{coherenttunneling2d.cpp}::safeFraction ( double value,
double norm )
noexcept

Performs safe fraction.

Parameters
valueValue to assign or evaluate.
normThe norm value used by the operation.

Definition at line 43 of file coherenttunneling2d.cpp.

References safeFraction().

Referenced by leftProbabilityForPhase(), and safeFraction().

Variable Documentation

◆ kPi

double qpe::anonymous_namespace{coherenttunneling2d.cpp}::kPi = 3.141592653589793238462643383279502884
constexpr

Definition at line 25 of file coherenttunneling2d.cpp.