Quantum Gate Decomposer  v1.3
Powerful decomposition of almost any unitary into U3 and CNOT gates
Macros | Functions
dot.cpp File Reference
#include "qgd/dot.h"
#include <cstring>
#include <iostream>
#include "tbb/tbb.h"
#include <tbb/scalable_allocator.h>
Include dependency graph for dot.cpp:

Go to the source code of this file.

Macros

#define SERIAL_CUTOFF   16
 

Functions

bool check_matrices (Matrix &A, Matrix &B)
 Call to check the shape of the matrices for method dot. More...
 
Matrix dot (Matrix &A, Matrix &B)
 Call to calculate the product of two complex matrices by calling method zgemm3m from the CBLAS library. More...
 
void get_cblas_transpose (Matrix &A, CBLAS_TRANSPOSE &transpose)
 Call to get the transpose properties of the input matrix for CBLAS calculations. More...
 

Macro Definition Documentation

◆ SERIAL_CUTOFF

#define SERIAL_CUTOFF   16

Definition at line 9 of file dot.cpp.

Function Documentation

◆ check_matrices()

bool check_matrices ( Matrix A,
Matrix B 
)

Call to check the shape of the matrices for method dot.

(Called in DEBUG mode)

Parameters
AThe first matrix in the product of type matrix.
BThe second matrix in the product of type matrix
Returns
Returns with true if the test passed, false otherwise.

Definition at line 103 of file dot.cpp.

Here is the call graph for this function:

◆ dot()

Matrix dot ( Matrix A,
Matrix B 
)

Call to calculate the product of two complex matrices by calling method zgemm3m from the CBLAS library.

Parameters
AThe first matrix.
BThe second matrix
Returns
Returns with the resulted matrix.

Definition at line 20 of file dot.cpp.

Here is the call graph for this function:

◆ get_cblas_transpose()

void get_cblas_transpose ( Matrix A,
CBLAS_TRANSPOSE &  transpose 
)

Call to get the transpose properties of the input matrix for CBLAS calculations.

Parameters
AThe matrix of type matrix.
transposeThe returned vale of CBLAS_TRANSPOSE.

Definition at line 153 of file dot.cpp.

Here is the call graph for this function: