Quantum Phenomena Explorer 7.9.8
Interactive quantum-phenomena Explorer Tutor — source documentation
Loading...
Searching...
No Matches
qpe::BoundStates1D Class Reference

Implements the Bound States1D component. More...

#include <boundstates1d.h>

Static Public Member Functions

static BoundStateSpectrum1D solve (const PotentialField2D &potential, const BoundStateSolver1DParams &params)
 Performs solve.
 
static bool isYInvariant (const PotentialField2D &potential, double tolerance=1.0e-5) noexcept
 Returns whether y invariant.
 
static std::uint64_t potentialSignature (const PotentialField2D &potential) noexcept
 Performs potential signature.
 
static bool matches (const BoundStateSpectrum1D &spectrum, const PotentialField2D &potential, double mass, double hbar=1.0) noexcept
 Performs matches.
 
static bool prepareEigenstate (ComplexField2D &field, const BoundStateSpectrum1D &spectrum, int stateIndex)
 Prepares eigenstate.
 
static bool prepareSuperposition (ComplexField2D &field, const BoundStateSpectrum1D &spectrum, int stateIndexA, int stateIndexB, double relativePhaseRadians=0.0)
 Prepares superposition.
 

Detailed Description

Implements the Bound States1D component.

The class provides one focused service within the QPE architecture and is documented here independently of the experiment-level Help.

Definition at line 82 of file boundstates1d.h.

Member Function Documentation

◆ isYInvariant()

bool qpe::BoundStates1D::isYInvariant ( const PotentialField2D & potential,
double tolerance = 1.0e-5 )
staticnoexcept

Returns whether y invariant.

Parameters
potentialPotential field used by the operation.
toleranceThe tolerance value used by the operation.

Definition at line 312 of file boundstates1d.cpp.

Referenced by qpe::tests::runBoundStates1DTests(), and solve().

◆ matches()

bool qpe::BoundStates1D::matches ( const BoundStateSpectrum1D & spectrum,
const PotentialField2D & potential,
double mass,
double hbar = 1.0 )
staticnoexcept

Performs matches.

Parameters
spectrumThe spectrum value used by the operation.
potentialPotential field used by the operation.
massThe mass value used by the operation.
hbarThe hbar value used by the operation.

Definition at line 366 of file boundstates1d.cpp.

Referenced by MainWindow::prepareConfiguredInitialState(), MainWindow::refreshBoundStateAnalysis(), qpe::tests::runBoundStates1DTests(), and MainWindow::updateCoherentTunnelingAnalysis().

◆ potentialSignature()

std::uint64_t qpe::BoundStates1D::potentialSignature ( const PotentialField2D & potential)
staticnoexcept

Performs potential signature.

Parameters
potentialPotential field used by the operation.

Definition at line 339 of file boundstates1d.cpp.

Referenced by solve().

◆ prepareEigenstate()

bool qpe::BoundStates1D::prepareEigenstate ( ComplexField2D & field,
const BoundStateSpectrum1D & spectrum,
int stateIndex )
static

Prepares eigenstate.

Parameters
fieldField data to read or modify.
spectrumThe spectrum value used by the operation.
stateIndexZero-based index used to select the requested item.

Definition at line 542 of file boundstates1d.cpp.

References qpe::BoundState1D::amplitude, qpe::ComplexField2D::dy(), qpe::ComplexField2D::empty(), qpe::ComplexField2D::height(), qpe::ComplexField2D::normalize(), qpe::BoundStateSpectrum1D::states, qpe::BoundStateSpectrum1D::valid, qpe::ComplexField2D::width(), and qpe::BoundStateSpectrum1D::x.

Referenced by MainWindow::prepareConfiguredInitialState(), qpe::tests::runBoundStates1DTests(), and qpe::tests::runDrivenTwoLevel2DTests().

◆ prepareSuperposition()

bool qpe::BoundStates1D::prepareSuperposition ( ComplexField2D & field,
const BoundStateSpectrum1D & spectrum,
int stateIndexA,
int stateIndexB,
double relativePhaseRadians = 0.0 )
static

Prepares superposition.

Parameters
fieldField data to read or modify.
spectrumThe spectrum value used by the operation.
stateIndexAThe state index a value used by the operation.
stateIndexBThe state index b value used by the operation.
relativePhaseRadiansThe relative phase radians value used by the operation.

Definition at line 570 of file boundstates1d.cpp.

References qpe::BoundState1D::amplitude, qpe::ComplexField2D::dy(), qpe::ComplexField2D::empty(), qpe::ComplexField2D::height(), qpe::ComplexField2D::normalize(), qpe::BoundStateSpectrum1D::states, qpe::BoundStateSpectrum1D::valid, qpe::ComplexField2D::width(), and qpe::BoundStateSpectrum1D::x.

Referenced by MainWindow::prepareConfiguredInitialState(), qpe::tests::runBoundStates1DTests(), and qpe::tests::runCoherentTunneling2DTests().

◆ solve()

BoundStateSpectrum1D qpe::BoundStates1D::solve ( const PotentialField2D & potential,
const BoundStateSolver1DParams & params )
static

The documentation for this class was generated from the following files: