Go to the documentation of this file.
15 # ifndef QUEST_PRECISION_H
16 # define QUEST_PRECISION_H
31 # define MPI_QuEST_REAL MPI_FLOAT
32 # define MPI_MAX_AMPS_IN_MSG (1LL<<29) // must be 2^int
33 # define REAL_STRING_FORMAT "%.8f"
34 # define REAL_QASM_FORMAT "%.8g"
35 # define REAL_EPS 1e-5
36 # define REAL_SPECIFIER "%f"
37 # define absReal(X) fabs(X) // not fabsf(X) - better to return doubles where possible
45 # define MPI_QuEST_REAL MPI_DOUBLE
46 # define MPI_MAX_AMPS_IN_MSG (1LL<<28) // must be 2^int
47 # define REAL_STRING_FORMAT "%.14f"
48 # define REAL_QASM_FORMAT "%.14g"
49 # define REAL_EPS 1e-13
50 # define REAL_SPECIFIER "%lf"
51 # define absReal(X) fabs(X)
58 # define qreal long double
60 # define MPI_QuEST_REAL MPI_LONG_DOUBLE
61 # define MPI_MAX_AMPS_IN_MSG (1LL<<27) // must be 2^int
62 # define REAL_STRING_FORMAT "%.17Lf"
63 # define REAL_QASM_FORMAT "%.17Lg"
64 # define REAL_EPS 1e-14
65 # define REAL_SPECIFIER "%Lf"
66 # define absReal(X) fabsl(X)
72 # define MAX_NUM_REGS_APPLY_ARBITRARY_PHASE 100
110 # endif // QUEST_PRECISION_H