Loading...
Searching...
No Matches
single_precision.hpp
Go to the documentation of this file.
1#pragma once
2
3/**
4 * Single-precision (FP32) scalar type aliases for mixed-precision GPU computation.
5 *
6 * Complements the existing FP64 types in type_aliases.hpp:
7 * Real = double → RealSingle = float
8 * Complex = std::complex<double> → ComplexSingle = std::complex<float>
9 *
10 * These types are used by GPU BLAS wrappers and mixed-precision Davidson
11 * iterations where bulk H|ψ⟩ computation runs in FP32 for performance.
12 */
13
14#include <complex>
15
16namespace q3 {
17
18// Single-precision scalar types for GPU mixed-precision computation
19using RealSingle = float;
20using ComplexSingle = std::complex<float>;
21
22} // namespace q3
float RealSingle
std::complex< float > ComplexSingle