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

Methods to calculate the cost function of the sub-disantenglement problem with TBB parallelization. More...

#include "qgd/Sub_Matrix_Decomposition_Cost_Function.h"
Include dependency graph for Sub_Matrix_Decomposition_Cost_Function.cpp:

Go to the source code of this file.

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

Methods to calculate the cost function of the sub-disantenglement problem with TBB parallelization.

Definition in file Sub_Matrix_Decomposition_Cost_Function.cpp.

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.