Quantum Phenomena Explorer 7.9.8
Interactive quantum-phenomena Explorer Tutor — source documentation
Loading...
Searching...
No Matches
probabilityimagerenderer.h
Go to the documentation of this file.
1/**
2 * @file probabilityimagerenderer.h
3 * @brief Declares the probabilityimagerenderer visualization component used by QPE.
4 * @ingroup qpe_graphics
5 *
6 * Source: @c graphics/renderer/probabilityimagerenderer.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 <QImage>
15
16namespace qpe {
17class ComplexField2D;
18
19/**
20 * @brief Configuration values for Probability Render Options.
21 *
22 * The structure groups parameters that are passed together so the associated numerical/analysis component can be configured reproducibly.
23 */
25{
26 // Display normalization only: the physical wavefunction is never modified.
27 bool normalizeToPeak = true;
28 float gamma = 1.0f;
29};
30
31/**
32 * @brief Implements the Probability Image Renderer component.
33 *
34 * The class provides one focused service within the QPE architecture and is documented here independently of the experiment-level Help.
35 */
37{
38public:
39 /**
40 * @brief Renders the component state.
41 * @param field Field data to read or modify.
42 * @param options The options value used by the operation.
43 */
44 static QImage render(const ComplexField2D &field,
45 const ProbabilityRenderOptions &options = {});
46
47 /**
48 * @brief Carries out peak probability.
49 * @param field Field data to read or modify.
50 */
51 static double peakProbability(const ComplexField2D &field) noexcept;
52};
53
54} // namespace qpe
Owning Cartesian grid of complex scalar samples.
Implements the Probability Image Renderer component.
static double peakProbability(const ComplexField2D &field) noexcept
Carries out peak probability.
static QImage render(const ComplexField2D &field, const ProbabilityRenderOptions &options={})
Renders the component state.
Configuration values for Probability Render Options.