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
13
14namespace q3 {
15
16/// Abstract base for all wavefunction types.
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
Abstract base for all wavefunction types.
Definition init.hpp:17
virtual ~Wavefunction()=default
virtual int number_of_components() const =0
Number of components per wavefunction (always 1 for scalar states).