Sequential Quantum Gate Decomposer  v1.9.3
Powerful decomposition of general unitarias into one- and two-qubit gates gates
List of all members | Public Member Functions | Public Attributes
Matrix_sparse Class Reference

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_Complex16data
 
intindices
 
intindptr
 
int NNZ
 
int rows
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Matrix_sparse() [1/2]

Matrix_sparse::Matrix_sparse ( )

Default constructor of the class.

Returns
Returns with the instance of the class.

Definition at line 32 of file matrix_sparse.cpp.

◆ Matrix_sparse() [2/2]

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.

Parameters
data_inThe pointer pointing to the data
rows_inThe number of rows in the stored matrix
cols_inThe number of columns in the stored matrix
Returns
Returns with the instance of the class.

Definition at line 46 of file matrix_sparse.cpp.

Member Data Documentation

◆ cols

int Matrix_sparse::cols

Definition at line 43 of file matrix_sparse.h.

◆ data

QGD_Complex16* Matrix_sparse::data

Definition at line 47 of file matrix_sparse.h.

◆ indices

int* Matrix_sparse::indices

Definition at line 49 of file matrix_sparse.h.

◆ indptr

int* Matrix_sparse::indptr

Definition at line 51 of file matrix_sparse.h.

◆ NNZ

int Matrix_sparse::NNZ

Definition at line 45 of file matrix_sparse.h.

◆ rows

int Matrix_sparse::rows

Definition at line 41 of file matrix_sparse.h.


The documentation for this class was generated from the following files: