23 #ifndef N_Qubit_Decomposition_Cost_Function_H 24 #define N_Qubit_Decomposition_Cost_Function_H 28 #include <tbb/combinable.h> 128 void operator()( tbb::blocked_range<int> r )
const;
QGD_Complex16 * data
Pointer to the data stored in the matrix.
Matrix_real get_cost_function_with_correction(Matrix matrix, int qbit_num, int trace_offset=0)
Call co calculate the cost function of the optimization process, and the first correction to the cost...
Matrix_real get_cost_function_with_correction2(Matrix matrix, int qbit_num, int trace_offset=0)
Call co calculate the cost function of the optimization process, and the first correction to the cost...
Header file for a class containing basic methods for setting up the verbosity level.
A class containing basic methods for setting up the verbosity level.
QGD_Complex16 get_trace(Matrix &matrix)
Call to calculate the real and imaginary parts of the trace.
double get_infidelity(Matrix &matrix)
Call to calculate infidelity.
Function operator class to calculate the partial cost function of the final optimization process...
Matrix matrix
Array stroing the matrix.
functor_cost_fnc(Matrix matrix_in, tbb::combinable< double > *partial_cost_functions_in)
Constructor of the class.
void operator()(tbb::blocked_range< int > r) const
Operator to calculate the partial cost function derived from the row of the matrix labeled by row_idx...
double get_cost_function(Matrix matrix, int trace_offset=0)
Call co calculate the cost function during the final optimization process.
Structure type representing complex numbers in the SQUANDER package.
Class to store data of complex arrays and its properties.
Matrix get_trace_with_correction(Matrix &matrix, int qbit_num)
Call co calculate the Hilbert Schmidt testof the optimization process, and the first correction to th...
double get_cost_function_sum_of_squares(Matrix &matrix)
Header file for commonly used functions and wrappers to CBLAS functions.
Matrix get_trace_with_correction2(Matrix &matrix, int qbit_num)
Call co calculate the Hilbert Schmidt testof the optimization process, and the first correction to th...
Class to store data of complex arrays and its properties.
double get_hilbert_schmidt_test(Matrix &matrix)
Call co calculate the cost function of the optimization process according to https://arxiv.org/pdf/2210.09191.pdf.
tbb::combinable< double > * partial_cost_functions
array storing the partial cost functions