|
Quantum Phenomena Explorer 7.9.8
Interactive quantum-phenomena Explorer Tutor — source documentation
|
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. | |
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.
|
staticnoexcept |
Performs measure.
| field | Field data to read or modify. |
| config | Configuration to apply. |
| mass | The mass value used by the operation. |
| hbar | The hbar value used by the operation. |
| time | Simulation 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().
|
staticnoexcept |
Performs positive momentum fraction.
| field | Field 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().
|
static |
Prepares state.
| field | Field data to read or modify. |
| config | Configuration to apply. |
| hbar | The hbar value used by the operation. |
| reason | The reason value used by the operation. |
Definition at line 93 of file quantumbackflow2d.cpp.
References qpe::ComplexField2D::dx(), qpe::ComplexField2D::dy(), qpe::ComplexField2D::empty(), qpe::QuantumBackflow2DConfig::fastAmplitudeRatio, qpe::QuantumBackflow2DConfig::fastWaveNumber, qpe::ComplexField2D::fill(), qpe::ComplexField2D::height(), qpe::QuantumBackflow2DConfig::initialCenterX, qpe::FFT2D::inverse(), qpe::QuantumBackflow2DConfig::momentumSigma, qpe::ComplexField2D::normalize(), qpe::QuantumBackflow2DConfig::relativePhaseDegrees, qpe::QuantumBackflow2DConfig::slowWaveNumber, qpe::FFT2D::supportsSize(), qpe::QuantumBackflow2DConfig::transverseSigma, validateConfig(), and qpe::ComplexField2D::width().
Referenced by MainWindow::prepareConfiguredInitialState(), and qpe::tests::runQuantumBackflow2DTests().
|
staticnoexcept |
Validates config.
| config | Configuration to apply. |
| reason | The 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().