Quantum 3xplorer (Q3)
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
16
namespace
q3
{
17
18
// Single-precision scalar types for GPU mixed-precision computation
19
using
RealSingle
= float;
20
using
ComplexSingle
= std::complex<float>;
21
22
}
// namespace q3
q3
Definition
q3_core_api.hpp:33
q3::RealSingle
float RealSingle
Definition
single_precision.hpp:19
q3::ComplexSingle
std::complex< float > ComplexSingle
Definition
single_precision.hpp:20
src
layer_0_core
types
single_precision.hpp
Generated by
1.9.8