Sequential Quantum Gate Decomposer
v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
tmp38logioh
squander
src-cpp
common
include
matrix_real_float.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
*/
20
21
#ifndef MATRIX_REAL_FLOAT_H
22
#define MATRIX_REAL_FLOAT_H
23
24
#include "
matrix_base.hpp
"
25
#include <cmath>
26
27
31
class
Matrix_real_float
:
public
matrix_base
<float> {
32
34
char
padding
[
CACHELINE
-48];
35
36
public
:
37
38
Matrix_real_float
();
39
Matrix_real_float
(
float
* data_in,
int
rows_in,
int
cols_in);
40
Matrix_real_float
(
float
* data_in,
int
rows_in,
int
cols_in,
int
stride_in);
41
Matrix_real_float
(
int
rows_in,
int
cols_in);
42
Matrix_real_float
(
int
rows_in,
int
cols_in,
int
stride_in);
43
Matrix_real_float
(
const
Matrix_real_float
&in);
44
Matrix_real_float
&
operator=
(
const
Matrix_real_float
&mtx);
45
Matrix_real_float
copy
()
const
;
46
bool
isnan
();
47
48
};
49
50
51
#endif
Matrix_real_float
Class to store single-precision real arrays and properties.
Definition:
matrix_real_float.h:31
CACHELINE
#define CACHELINE
Definition:
QGDTypes.h:33
Matrix_real_float::copy
Matrix_real_float copy() const
Definition:
matrix_real_float.cpp:56
matrix_base
Base Class to store data of arrays and its properties.
Definition:
matrix_base.hpp:38
matrix_base.hpp
Matrix_real_float::isnan
bool isnan()
Definition:
matrix_real_float.cpp:71
Matrix_real_float::Matrix_real_float
Matrix_real_float()
Definition:
matrix_real_float.cpp:26
Matrix_real_float::operator=
Matrix_real_float & operator=(const Matrix_real_float &mtx)
Definition:
matrix_real_float.cpp:50
Matrix_real_float::padding
char padding[CACHELINE-48]
padding class object to cache line borders
Definition:
matrix_real_float.h:34
Generated on Thu Jul 9 2026 07:59:24 for Sequential Quantum Gate Decomposer by
1.8.13