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

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

#include "qgd/common.h"
Include dependency graph for N_Qubit_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_cost_fnc
 Function operator class to calculate the partial cost function of the final optimization process. More...
 

Functions

double get_cost_function (Matrix matrix)
 Call co calculate the cost function during the final optimization process. More...
 

Detailed Description

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

Definition in file N_Qubit_Decomposition_Cost_Function.h.

Function Documentation

◆ get_cost_function()

double get_cost_function ( Matrix  matrix)

Call co calculate the cost function during the final optimization process.

Parameters
matrixThe square shaped complex matrix from which the cost function is calculated.
Returns
Returns with the calculated cost function.

Definition at line 34 of file N_Qubit_Decomposition_Cost_Function.cpp.