Quantum 3xplorer (Q3)
An AI-native quantum simulation engine
Loading...
Searching...
No Matches
q3::FileMeanFieldBandSource Class Reference

#include <checkpoint.hpp>

+ Inheritance diagram for q3::FileMeanFieldBandSource:

Public Member Functions

 FileMeanFieldBandSource (std::string file_path, std::streamoff coefficient_block_offset, int number_of_bands, std::vector< int > plane_waves_per_kpoint)
 
const Complex * coefficients (int kpoint_state_index, int band_index) const override
 
- Public Member Functions inherited from q3::MeanFieldBandSource
virtual ~MeanFieldBandSource ()=default
 

Detailed Description

Band source that reads coefficients back from a mean-field record file.

Caches exactly one k-point: exporters walk (k, band) in order, so this turns into one sequential read per k-point while keeping peak memory to a single k-point's worth of coefficients rather than the whole wavefunction set.

Definition at line 104 of file checkpoint.hpp.

Constructor & Destructor Documentation

◆ FileMeanFieldBandSource()

q3::FileMeanFieldBandSource::FileMeanFieldBandSource ( std::string  file_path,
std::streamoff  coefficient_block_offset,
int  number_of_bands,
std::vector< int >  plane_waves_per_kpoint 
)
inline

Definition at line 106 of file checkpoint.hpp.

Member Function Documentation

◆ coefficients()

const Complex * q3::FileMeanFieldBandSource::coefficients ( int  kpoint_state_index,
int  band_index 
) const
inlineoverridevirtual

kpoint_state_index is the (k-point, spin) state index, matching the eigenvalue/occupation row convention below – not the physical k-point index. They coincide only for a spin-unpolarized run.

Implements q3::MeanFieldBandSource.

Definition at line 125 of file checkpoint.hpp.


The documentation for this class was generated from the following file: