Quantum++  v1.0.0-beta3
C++11 quantum computing library
constants.h File Reference

Constants. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 qpp
 Quantum++ main namespace.
 

Functions

constexpr cplx qpp::operator""_i (unsigned long long int x) noexcept
 User-defined literal for complex $i=\sqrt{-1}$ (integer overload) More...
 
constexpr cplx qpp::operator""_i (long double x) noexcept
 User-defined literal for complex $i=\sqrt{-1}$ (real overload) More...
 
cplx qpp::omega (idx D)
 D-th root of unity. More...
 

Variables

constexpr double qpp::chop = 1e-10
 Used in qpp::disp() for setting to zero numbers that have their absolute value smaller than qpp::chop. More...
 
constexpr double qpp::eps = 1e-12
 Used to decide whether a number or expression in double precision is zero or not. More...
 
constexpr idx qpp::maxn = 64
 Maximum number of allowed qubits/qudits (subsystems) More...
 
constexpr double qpp::pi = 3.141592653589793238462643383279502884
 $ \pi $ More...
 
constexpr double qpp::ee = 2.718281828459045235360287471352662497
 Base of natural logarithm, $e$. More...
 
constexpr double qpp::infty = std::numeric_limits<double>::infinity()
 Used to denote infinity in double precision. More...
 

Detailed Description

Constants.