36 inline namespace literals {
42 inline constexpr cplx
operator"" _i(
unsigned long long int x) noexcept {
43 return {0.,
static_cast<double>(x)};
51 inline constexpr cplx
operator"" _i(
long double x) noexcept {
52 return {0.,
static_cast<double>(x)};
60 inline constexpr std::complex<float>
61 operator"" _if(
unsigned long long int x) noexcept {
62 return {0.,
static_cast<float>(x)};
70 inline constexpr std::complex<float>
operator"" _if(
long double x) noexcept {
71 return {0.,
static_cast<float>(x)};
80 constexpr
double chop = 1e-14;
87 constexpr idx maxn = 64;
92 constexpr
double pi = 3.141592653589793238462643383279502884;
96 constexpr
double ee = 2.718281828459045235360287471352662497;
101 constexpr
double infty = std::numeric_limits<double>::max();
109 inline cplx omega(idx D) {
111 throw exception::OutOfRange(
"qpp::omega()");
112 return exp(2.0 * pi * 1_i / static_cast<double>(D));
Quantum++ main namespace.
Definition: circuits.h:35