Sequential Quantum Gate Decomposer  v1.9.3
Powerful decomposition of general unitarias into one- and two-qubit gates gates
matrix_real.h
Go to the documentation of this file.
1 /*
2 Created on Fri Jun 26 14:13:26 2020
3 Copyright 2020 Peter Rakyta, Ph.D.
4 
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8 
9  http://www.apache.org/licenses/LICENSE-2.0
10 
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16 
17 
18 @author: Peter Rakyta, Ph.D.
19 */
25 #ifndef matrix_real_H
26 #define matrix_real_H
27 
28 #include "matrix_base.hpp"
29 #include <cmath>
30 
31 
39 class Matrix_real : public matrix_base<double> {
40 
42  char padding[CACHELINE-48];
43 
44 public:
45 
50 Matrix_real();
51 
59 Matrix_real( double* data_in, int rows_in, int cols_in);
60 
61 
70 Matrix_real( double* data_in, int rows_in, int cols_in, int stride_in);
71 
72 
79 Matrix_real( int rows_in, int cols_in);
80 
81 
89 Matrix_real( int rows_in, int cols_in, int stride_in);
90 
91 
92 
97 Matrix_real(const Matrix_real &in);
98 
99 
104 Matrix_real copy() const;
105 
106 
111 bool isnan();
112 
113 
114 }; //matrix
115 
116 
117 
118 
119 
120 
121 #endif
Matrix_real copy() const
Call to create a copy of the matrix.
char padding[CACHELINE-48]
padding class object to cache line borders
Definition: matrix_real.h:42
#define CACHELINE
Definition: QGDTypes.h:33
Base Class to store data of arrays and its properties.
Definition: matrix_base.hpp:38
bool isnan()
Call to check the array for NaN entries.
Matrix_real()
Default constructor of the class.
Definition: matrix_real.cpp:35
Class to store data of complex arrays and its properties.
Definition: matrix_real.h:39