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

Methods to calculate the cost function of the final optimization problem (supporting parallel computations). More...

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

Go to the source code of this file.

Functions

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

Detailed Description

Methods to calculate the cost function of the final optimization problem (supporting parallel computations).

Definition in file N_Qubit_Decomposition_Cost_Function.cpp.

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.