Sequential Quantum Gate Decomposer
v1.9.3
Powerful decomposition of general unitarias into one- and two-qubit gates gates
|
Go to the source code of this file.
Functions | |
void | apply_kernel_to_input (Matrix &u3_1qbit, Matrix &input, const bool &deriv, const int &target_qbit, const int &control_qbit, const int &matrix_size) |
Call to apply kernel to apply single qubit gate kernel on an input matrix. More... | |
void apply_kernel_to_input | ( | Matrix & | u3_1qbit, |
Matrix & | input, | ||
const bool & | deriv, | ||
const int & | target_qbit, | ||
const int & | control_qbit, | ||
const int & | matrix_size | ||
) |
Call to apply kernel to apply single qubit gate kernel on an input matrix.
u3_1qbit | The 2x2 kernel of the gate operation |
input | The input matrix on which the transformation is applied |
deriv | Set true to apply derivate transformation, false otherwise |
target_qbit | The targer qubit on which the transformation should be applied |
control_qbit | The contron qubit (-1 if the is no control qubit) |
matrix_size | The size of the input |
Definition at line 42 of file apply_kernel_to_input.cpp.