Quantum 3xplorer (Q3)
An AI-native quantum simulation engine
Loading...
Searching...
No Matches
spin_resolved_entity.hpp
Go to the documentation of this file.
1#pragma once
2
3/**
4 * SpinResolvedEntity — base class for quantum entities with spin-resolved data.
5 *
6 * Provides common spin component count and spin-polarization query for
7 * charge density, effective potential, and other spin-resolved quantities.
8 * The number of spin components is set at construction time by subclasses.
9 *
10 * Convention:
11 * number_of_spin_components = 1 → non-spin-polarized (LDA/GGA)
12 * number_of_spin_components = 2 → spin-polarized (LSDA/spin-GGA)
13 */
14
15namespace q3 {
16
18 public:
19 virtual ~SpinResolvedEntity() = default;
20
21 [[nodiscard]] int number_of_spin_components() const {
23 }
24 [[nodiscard]] bool is_spin_polarized() const {
26 }
27
28 protected:
30};
31
32} // namespace q3
virtual ~SpinResolvedEntity()=default