Quantum Gate Decomposer
v1.3
Powerful decomposition of almost any unitary into U3 and CNOT gates
|
Function operator class to extract the submatrices from a unitary. More...
#include <Sub_Matrix_Decomposition_Cost_Function.h>
Public Member Functions | |
functor_extract_submatrices (Matrix &matrix_in, std::vector< Matrix, tbb::cache_aligned_allocator< Matrix >> *submatrices_in) | |
Constructor of the class. More... | |
void | operator() (tbb::blocked_range< size_t > r) const |
Operator to extract the sumbatrix indexed by submtx_idx. More... | |
Protected Attributes | |
Matrix | matrix |
The matrix from which submatrices would be extracted. More... | |
std::vector< Matrix, tbb::cache_aligned_allocator< Matrix > > * | submatrices |
preallocated container storing the submatrices More... | |
Function operator class to extract the submatrices from a unitary.
Definition at line 45 of file Sub_Matrix_Decomposition_Cost_Function.h.
functor_extract_submatrices::functor_extract_submatrices | ( | Matrix & | matrix_in, |
std::vector< Matrix, tbb::cache_aligned_allocator< Matrix >> * | submatrices_in | ||
) |
Constructor of the class.
matrix_in | The square shaped complex matrix from which the cost function is calculated during the submatrix decomposition process. |
submatrices_in | Preallocated arrays for the submatrices |
matrix_in | The square shaped complex matrix from which the cost function is calculated during the submatrix decomposition process. |
matrix_size_in | The number rows in the matrix matrix_in |
submatrices_in | Preallocated arrays for the submatrices |
Definition at line 85 of file Sub_Matrix_Decomposition_Cost_Function.cpp.
void functor_extract_submatrices::operator() | ( | tbb::blocked_range< size_t > | r | ) | const |
Operator to extract the sumbatrix indexed by submtx_idx.
Operator to extract the submatrix indexed by submtx_idx.
r | A range of indices labeling the given submatrix to be extracted |
Definition at line 97 of file Sub_Matrix_Decomposition_Cost_Function.cpp.
|
protected |
The matrix from which submatrices would be extracted.
Definition at line 50 of file Sub_Matrix_Decomposition_Cost_Function.h.
|
protected |
preallocated container storing the submatrices
Definition at line 52 of file Sub_Matrix_Decomposition_Cost_Function.h.