Sequential Quantum Gate Decomposer
v1.9.3
Powerful decomposition of general unitarias into one- and two-qubit gates gates
|
Class to store data of complex arrays and its properties. More...
#include <matrix_sparse.h>
Public Member Functions | |
Matrix_sparse () | |
Default constructor of the class. More... | |
Matrix_sparse (QGD_Complex16 *data_in, int rows_in, int cols_in, int NNZ_in, int *indices_in, int *indptr) | |
Constructor of the class. More... | |
Public Attributes | |
int | cols |
QGD_Complex16 * | data |
int * | indices |
int * | indptr |
int | NNZ |
int | rows |
Class to store data of complex arrays and its properties.
Compatible with the Picasso numpy interface.
Definition at line 38 of file matrix_sparse.h.
Matrix_sparse::Matrix_sparse | ( | ) |
Default constructor of the class.
Definition at line 32 of file matrix_sparse.cpp.
Matrix_sparse::Matrix_sparse | ( | QGD_Complex16 * | data_in, |
int | rows_in, | ||
int | cols_in, | ||
int | NNZ_in, | ||
int * | indices_in, | ||
int * | indptr | ||
) |
Constructor of the class.
By default the created class instance would not be owner of the stored data.
data_in | The pointer pointing to the data |
rows_in | The number of rows in the stored matrix |
cols_in | The number of columns in the stored matrix |
Definition at line 46 of file matrix_sparse.cpp.
int Matrix_sparse::cols |
Definition at line 43 of file matrix_sparse.h.
QGD_Complex16* Matrix_sparse::data |
Definition at line 47 of file matrix_sparse.h.
int* Matrix_sparse::indices |
Definition at line 49 of file matrix_sparse.h.
int* Matrix_sparse::indptr |
Definition at line 51 of file matrix_sparse.h.
int Matrix_sparse::NNZ |
Definition at line 45 of file matrix_sparse.h.
int Matrix_sparse::rows |
Definition at line 41 of file matrix_sparse.h.