26 #define _USE_MATH_DEFINES 49 #if BLAS==0 // undefined blas 55 void MKL_Set_Num_Threads(
int num_threads);
58 int mkl_get_max_threads();
59 #elif BLAS==2 // OpenBLAS 60 void openblas_set_num_threads(
int num_threads);
63 int openblas_get_num_threads();
84 void*
qgd_calloc(
int element_num,
int size,
int alignment );
95 void*
qgd_realloc(
void* aligned_ptr,
int element_num,
int size,
int alignment );
Matrix reduce_zgemm(std::vector< Matrix > &mtxs)
Calculate the product of several square shaped complex matrices stored in a vector.
int Power_of_2(int n)
Calculates the n-th power of 2.
void * qgd_realloc(void *aligned_ptr, int element_num, int size, int alignment)
custom defined memory reallocation function.
void subtract_diag(Matrix &mtx, QGD_Complex16 scalar)
Call to subtract a scalar from the diagonal of a complex matrix.
Matrix create_identity(int matrix_size)
Call to create an identity matrix.
Header file of complex array storage array with automatic and thread safe reference counting...
void conjugate_gradient(Matrix_real A, Matrix_real b, Matrix_real &x0, double tol)
Class to store data of complex arrays and its properties.
QGD_Complex16 mult(QGD_Complex16 &a, QGD_Complex16 &b)
Call to calculate the product of two complex scalars.
Custom types for the SQUANDER package.
Structure type representing complex numbers in the SQUANDER package.
void qgd_free(void *ptr)
custom defined memory release function.
Class to store data of complex arrays and its properties.
void omp_set_num_threads(int num_threads)
Set the number of threads on runtime in MKL.
double activation_function(double Phi, int limit)
?????
void add_unique_elelement(std::vector< int > &involved_qbits, int qbit)
Add an integer to a vector of integers if the integer is not already an element of the vector...
double arg(const QGD_Complex16 &a)
Call to retrieve the phase of a complex number.
void * qgd_calloc(int element_num, int size, int alignment)
custom defined memory allocation function.
Class to store data of complex arrays and its properties.
int omp_get_max_threads()
get the number of threads in MKL