Quantum Gate Decomposer  v1.3
Powerful decomposition of almost any unitary into U3 and CNOT gates
Classes | Functions
Sub_Matrix_Decomposition_Cost_Function.h File Reference

Header file for the paralleized calculation of the cost function of the subdecomposition (supporting TBB and OpenMP). More...

#include "qgd/common.h"
Include dependency graph for Sub_Matrix_Decomposition_Cost_Function.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  functor_extract_submatrices
 Function operator class to extract the submatrices from a unitary. More...
 
class  functor_submtx_cost_fnc
 Function operator class to calculate the partial cost function derived from the individual products of the submatrices. More...
 

Functions

double get_submatrix_cost_function (Matrix &matrix)
 Call to calculate the cost function of a given matrix during the submatrix decomposition process. More...
 

Detailed Description

Header file for the paralleized calculation of the cost function of the subdecomposition (supporting TBB and OpenMP).

Definition in file Sub_Matrix_Decomposition_Cost_Function.h.

Function Documentation

◆ get_submatrix_cost_function()

double get_submatrix_cost_function ( Matrix matrix)

Call to calculate the cost function of a given matrix during the submatrix decomposition process.

Parameters
matrixThe square shaped complex matrix from which the cost function is calculated during the submatrix decomposition process.
matrix_sizeThe number rows in the matrix matrix_new
Returns
Returns with the calculated cost function.

Definition at line 35 of file Sub_Matrix_Decomposition_Cost_Function.cpp.