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
14
#include "
core/math/complexfield2d.h
"
15
16
namespace
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
*/
23
struct
SpatialObservables2D
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
*/
39
class
WavePacketObservables2D
40
{
41
public
:
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
qpe::ComplexField2D
Owning Cartesian grid of complex scalar samples.
Definition
complexfield2d.h:34
qpe::WavePacketObservables2D
Implements the Wave Packet Observables2D component.
Definition
wavepacketobservables2d.h:40
qpe::WavePacketObservables2D::spatial
static SpatialObservables2D spatial(const ComplexField2D &field) noexcept
Performs spatial.
Definition
wavepacketobservables2d.cpp:21
complexfield2d.h
Declares the complex scalar field container representing two-dimensional wave functions.
qpe
Definition
mainwindow.h:76
qpe::SpatialObservables2D
Data structure used by the Spatial Observables2D component.
Definition
wavepacketobservables2d.h:24
qpe::SpatialObservables2D::sigmaY
double sigmaY
Definition
wavepacketobservables2d.h:29
qpe::SpatialObservables2D::norm2
double norm2
Definition
wavepacketobservables2d.h:25
qpe::SpatialObservables2D::meanX
double meanX
Definition
wavepacketobservables2d.h:26
qpe::SpatialObservables2D::meanY
double meanY
Definition
wavepacketobservables2d.h:27
qpe::SpatialObservables2D::sigmaX
double sigmaX
Definition
wavepacketobservables2d.h:28
core
quantum
wavepacketobservables2d.h
Generated by
1.12.0