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

Implements the Quantum Backflow2D component. More...

#include <quantumbackflow2d.h>

Static Public Member Functions

static bool validateConfig (const QuantumBackflow2DConfig &config, std::string *reason=nullptr) noexcept
 Validates config.
 
static bool prepareState (ComplexField2D &field, const QuantumBackflow2DConfig &config, double hbar, std::string *reason=nullptr)
 Prepares state.
 
static double positiveMomentumFraction (const ComplexField2D &field) noexcept
 Performs positive momentum fraction.
 
static QuantumBackflowSample2D measure (const ComplexField2D &field, const QuantumBackflow2DConfig &config, double mass, double hbar, double time) noexcept
 Performs measure.
 

Detailed Description

Implements the Quantum Backflow2D component.

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

Definition at line 60 of file quantumbackflow2d.h.

Member Function Documentation

◆ measure()

QuantumBackflowSample2D qpe::QuantumBackflow2D::measure ( const ComplexField2D & field,
const QuantumBackflow2DConfig & config,
double mass,
double hbar,
double time )
staticnoexcept

Performs measure.

Parameters
fieldField data to read or modify.
configConfiguration to apply.
massThe mass value used by the operation.
hbarThe hbar value used by the operation.
timeSimulation time in solver units.

Definition at line 167 of file quantumbackflow2d.cpp.

References qpe::QuantumBackflowSample2D::detectorCurrent, qpe::QuantumBackflowSample2D::probabilityLeft, qpe::QuantumBackflowSample2D::probabilityRight, and qpe::QuantumBackflowSample2D::time.

Referenced by qpe::QuantumBackflowHistory2D::append().

◆ positiveMomentumFraction()

double qpe::QuantumBackflow2D::positiveMomentumFraction ( const ComplexField2D & field)
staticnoexcept

Performs positive momentum fraction.

Parameters
fieldField data to read or modify.

Definition at line 145 of file quantumbackflow2d.cpp.

References qpe::FFT2D::forward(), and qpe::FFT2D::supportsSize().

Referenced by qpe::QuantumBackflowHistory2D::configure(), and qpe::tests::runQuantumBackflow2DTests().

◆ prepareState()

◆ validateConfig()

bool qpe::QuantumBackflow2D::validateConfig ( const QuantumBackflow2DConfig & config,
std::string * reason = nullptr )
staticnoexcept

Validates config.

Parameters
configConfiguration to apply.
reasonThe reason value used by the operation.

Definition at line 72 of file quantumbackflow2d.cpp.

Referenced by qpe::QuantumBackflowHistory2D::configure(), prepareState(), and qpe::anonymous_namespace{experimentdocument2d.cpp}::quantumBackflowFromJson().


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