Quantum Gate Decomposer  v1.3
Powerful decomposition of almost any unitary into U3 and CNOT gates
matrix.h
Go to the documentation of this file.
1 #ifndef matrix_H
2 #define matrix_H
3 
4 #include "qgd/matrix_base.h"
5 
6 
7 
8 
12 class Matrix : public matrix_base<QGD_Complex16> {
13 
15  char padding[CACHELINE-48];
16 
17 public:
18 
23 Matrix();
24 
32 Matrix( QGD_Complex16* data_in, size_t rows_in, size_t cols_in);
33 
34 
41 Matrix( size_t rows_in, size_t cols_in);
42 
43 
48 Matrix(const Matrix &in);
49 
50 
55 Matrix copy();
56 
57 
58 }; //matrix
59 
60 
61 
62 
63 
64 
65 #endif
char padding[CACHELINE-48]
padding class object to cache line borders
Definition: matrix.h:15
Matrix()
Default constructor of the class.
Definition: matrix.cpp:11
#define CACHELINE
Definition: QGDTypes.h:34
Base Class to store data of arrays and its properties.
Definition: matrix_base.h:19
Structure type representing complex numbers in the QGD package.
Definition: QGDTypes.h:39
Class to store data of complex arrays and its properties.
Definition: matrix.h:12
Matrix copy()
Call to create a copy of the matrix.
Definition: matrix.cpp:54