Sequential Quantum Gate Decomposer
v1.9.3
Powerful decomposition of general unitarias into one- and two-qubit gates gates
|
Header file for the paralleized calculation of the cost function of the final optimization problem (supporting TBB and OpenMP). More...
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, int trace_offset=0) |
Call co calculate the cost function during the final optimization process. More... | |
double | get_cost_function_sum_of_squares (Matrix &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 finction according to https://arxiv.org/pdf/2210.09191.pdf. More... | |
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 finction according to https://arxiv.org/pdf/2210.09191.pdf. More... | |
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. More... | |
double | get_infidelity (Matrix &matrix) |
Call to calculate infidelity. More... | |
QGD_Complex16 | get_trace (Matrix &matrix) |
Call to calculate the real and imaginary parts of the trace. More... | |
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 the cost finction according to https://arxiv.org/pdf/2210.09191.pdf. More... | |
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 the cost finction according to https://arxiv.org/pdf/2210.09191.pdf. More... | |
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.
Call co calculate the cost function during the final optimization process.
matrix | The square shaped complex matrix from which the cost function is calculated. |
matrix | The square shaped complex matrix from which the cost function is calculated. |
trace_offset | The offset in the first columns from which the "trace" is calculated. In this case Tr(A) = sum_(i-offset=j) A_{ij} |
Definition at line 34 of file N_Qubit_Decomposition_Cost_Function.cpp.
double get_cost_function_sum_of_squares | ( | Matrix & | matrix | ) |
Definition at line 316 of file N_Qubit_Decomposition_Cost_Function.cpp.
Matrix_real get_cost_function_with_correction | ( | Matrix | matrix, |
int | qbit_num, | ||
int | trace_offset | ||
) |
Call co calculate the cost function of the optimization process, and the first correction to the cost finction according to https://arxiv.org/pdf/2210.09191.pdf.
matrix | The square shaped complex matrix from which the cost function is calculated. |
qbit_num | The number of qubits |
Definition at line 133 of file N_Qubit_Decomposition_Cost_Function.cpp.
Matrix_real get_cost_function_with_correction2 | ( | Matrix | matrix, |
int | qbit_num, | ||
int | trace_offset | ||
) |
Call co calculate the cost function of the optimization process, and the first correction to the cost finction according to https://arxiv.org/pdf/2210.09191.pdf.
matrix | The square shaped complex matrix from which the cost function is calculated. |
qbit_num | The number of qubits |
Definition at line 205 of file N_Qubit_Decomposition_Cost_Function.cpp.
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.
matrix | The square shaped complex matrix from which the cost function is calculated. |
qbit_num | The number of qubits |
Definition at line 362 of file N_Qubit_Decomposition_Cost_Function.cpp.
double get_infidelity | ( | Matrix & | matrix | ) |
Call to calculate infidelity.
matrix | The square shaped complex matrix from which the cost function is calculated. |
qbit_num | The number of qubits |
Definition at line 372 of file N_Qubit_Decomposition_Cost_Function.cpp.
QGD_Complex16 get_trace | ( | Matrix & | matrix | ) |
Call to calculate the real and imaginary parts of the trace.
matrix | The square shaped complex matrix from which the trace is calculated. |
matrix | The square shaped complex matrix from which the trace is calculated. |
Definition at line 337 of file N_Qubit_Decomposition_Cost_Function.cpp.
Call co calculate the Hilbert Schmidt testof the optimization process, and the first correction to the cost finction according to https://arxiv.org/pdf/2210.09191.pdf.
matrix | The square shaped complex matrix from which the cost function is calculated. |
qbit_num | The number of qubits |
matrix | The square shaped complex matrix from which the cost function is calculated. |
qbit_num | The number of qubits |
Definition at line 388 of file N_Qubit_Decomposition_Cost_Function.cpp.
Call co calculate the Hilbert Schmidt testof the optimization process, and the first correction to the cost finction according to https://arxiv.org/pdf/2210.09191.pdf.
matrix | The square shaped complex matrix from which the cost function is calculated. |
qbit_num | The number of qubits |
matrix | The square shaped complex matrix from which the cost function is calculated. |
qbit_num | The number of qubits |
Definition at line 428 of file N_Qubit_Decomposition_Cost_Function.cpp.