Quantum 3xplorer (Q3)
Loading...
Searching...
No Matches
init.hpp
Go to the documentation of this file.
1
#pragma once
2
3
/**
4
* Abstract wavefunction base.
5
*
6
* A wavefunction ψ is a complex-valued function that represents
7
* a quantum mechanical state. This abstract base defines the
8
* interface without specifying the domain (real or reciprocal space)
9
* or the representation (grid, basis set, etc.).
10
*/
11
12
#include "
layer_0_core/types/init.hpp
"
13
14
namespace
q3
{
15
16
/// Abstract base for all wavefunction types.
17
class
Wavefunction
{
18
public
:
19
virtual
~Wavefunction
() =
default
;
20
21
/// Number of components per wavefunction (always 1 for scalar states).
22
[[nodiscard]]
virtual
int
number_of_components
()
const
= 0;
23
};
24
25
}
// namespace q3
q3::Wavefunction
Abstract base for all wavefunction types.
Definition
init.hpp:17
q3::Wavefunction::~Wavefunction
virtual ~Wavefunction()=default
q3::Wavefunction::number_of_components
virtual int number_of_components() const =0
Number of components per wavefunction (always 1 for scalar states).
init.hpp
q3
Definition
q3_core_api.hpp:33
src
layer_2_quantum_system
core
wavefunction
init.hpp
Generated by
1.9.8