Quantum Phenomena Explorer 7.9.8
Interactive quantum-phenomena Explorer Tutor — source documentation
Loading...
Searching...
No Matches
wavepacketobservables2d.h
Go to the documentation of this file.
1/**
2 * @file wavepacketobservables2d.h
3 * @brief Declares the wavepacketobservables2d physics/numerical component used by QPE experiments.
4 * @ingroup qpe_quantum
5 *
6 * Source: @c core/quantum/wavepacketobservables2d.h. This file is part of Quantum Phenomena Explorer (QPE),
7 * maintained by Officina Turini. See LICENSE_IT.txt / LICENSE.txt for the
8 * QPE freeware source-available terms and THIRD_PARTY_NOTICES.txt for
9 * third-party components.
10 */
11
12#pragma once
13
15
16namespace qpe {
17
18/**
19 * @brief Data structure used by the Spatial Observables2D component.
20 *
21 * The structure keeps related values explicit and testable across the QPE physics, analysis, or persistence layers.
22 */
24{
25 double norm2 = 0.0;
26 double meanX = 0.0;
27 double meanY = 0.0;
28 double sigmaX = 0.0;
29 double sigmaY = 0.0;
30};
31
32// Lightweight diagnostics in position space. These observables do not modify
33// the wavefunction and are useful both for validation and for the live UI.
34/**
35 * @brief Implements the Wave Packet Observables2D component.
36 *
37 * The class provides one focused service within the QPE architecture and is documented here independently of the experiment-level Help.
38 */
40{
41public:
42 /**
43 * @brief Performs spatial.
44 * @param field Field data to read or modify.
45 */
46 static SpatialObservables2D spatial(const ComplexField2D &field) noexcept;
47};
48
49} // namespace qpe
Owning Cartesian grid of complex scalar samples.
Implements the Wave Packet Observables2D component.
static SpatialObservables2D spatial(const ComplexField2D &field) noexcept
Performs spatial.
Declares the complex scalar field container representing two-dimensional wave functions.
Data structure used by the Spatial Observables2D component.