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

Implements the Quantum Revivals2D component. More...

#include <quantumrevivals2d.h>

Static Public Member Functions

static bool identifyBox (const PotentialScene2D &scene, QuantumBoxGeometry2D &geometry, std::string *reason=nullptr) noexcept
 Returns identify box.
 
static double revivalTime (double boxLength, double mass, double hbar=1.0) noexcept
 Performs revival time.
 
static double revivalTimeX (const QuantumBoxGeometry2D &geometry, double mass, double hbar=1.0) noexcept
 Performs revival time x.
 
static double revivalTimeY (const QuantumBoxGeometry2D &geometry, double mass, double hbar=1.0) noexcept
 Performs revival time y.
 
static std::vector< float > marginalProbabilityX (const ComplexField2D &field)
 Performs marginal probability x.
 
static double fidelity (const ComplexField2D &reference, const ComplexField2D &field) noexcept
 Performs fidelity.
 

Detailed Description

Implements the Quantum Revivals2D component.

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

Definition at line 57 of file quantumrevivals2d.h.

Member Function Documentation

◆ fidelity()

double qpe::QuantumRevivals2D::fidelity ( const ComplexField2D & reference,
const ComplexField2D & field )
staticnoexcept

Performs fidelity.

Parameters
referenceThe reference value used by the operation.
fieldField data to read or modify.

Definition at line 179 of file quantumrevivals2d.cpp.

Referenced by qpe::QuantumRevivalHistory2D::append(), and qpe::tests::runQuantumRevivals2DTests().

◆ identifyBox()

bool qpe::QuantumRevivals2D::identifyBox ( const PotentialScene2D & scene,
QuantumBoxGeometry2D & geometry,
std::string * reason = nullptr )
staticnoexcept

Returns identify box.

Parameters
sceneThe scene value used by the operation.
geometryThe geometry value used by the operation.
reasonThe reason value used by the operation.

Definition at line 48 of file quantumrevivals2d.cpp.

References qpe::PotentialObject2D::centerX, qpe::PotentialObject2D::centerY, qpe::PotentialObject2D::height, qpe::Rectangle, qpe::PotentialObject2D::value, and qpe::PotentialObject2D::width.

Referenced by MainWindow::resetSimulation(), and qpe::tests::runQuantumRevivals2DTests().

◆ marginalProbabilityX()

std::vector< float > qpe::QuantumRevivals2D::marginalProbabilityX ( const ComplexField2D & field)
static

Performs marginal probability x.

Parameters
fieldField data to read or modify.

Definition at line 160 of file quantumrevivals2d.cpp.

References qpe::ComplexField2D::dy(), qpe::ComplexField2D::empty(), qpe::ComplexField2D::height(), and qpe::ComplexField2D::width().

Referenced by qpe::QuantumRevivalHistory2D::append(), and qpe::tests::runQuantumRevivals2DTests().

◆ revivalTime()

double qpe::QuantumRevivals2D::revivalTime ( double boxLength,
double mass,
double hbar = 1.0 )
staticnoexcept

Performs revival time.

Parameters
boxLengthThe box length value used by the operation.
massThe mass value used by the operation.
hbarThe hbar value used by the operation.

Definition at line 135 of file quantumrevivals2d.cpp.

◆ revivalTimeX()

double qpe::QuantumRevivals2D::revivalTimeX ( const QuantumBoxGeometry2D & geometry,
double mass,
double hbar = 1.0 )
staticnoexcept

Performs revival time x.

Parameters
geometryThe geometry value used by the operation.
massThe mass value used by the operation.
hbarThe hbar value used by the operation.

Definition at line 146 of file quantumrevivals2d.cpp.

Referenced by QuantumRevivalPlotWidget::paintEvent(), qpe::tests::runQuantumRevivals2DTests(), and MainWindow::updateRevivalAnalysis().

◆ revivalTimeY()

double qpe::QuantumRevivals2D::revivalTimeY ( const QuantumBoxGeometry2D & geometry,
double mass,
double hbar = 1.0 )
staticnoexcept

Performs revival time y.

Parameters
geometryThe geometry value used by the operation.
massThe mass value used by the operation.
hbarThe hbar value used by the operation.

Definition at line 153 of file quantumrevivals2d.cpp.

Referenced by qpe::tests::runQuantumRevivals2DTests(), and MainWindow::updateRevivalAnalysis().


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