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_2qbit_kernel_to_matrix_input (Matrix &two_qbit_unitary, Matrix &input, const int &inner_qbit, const int &outer_qbit, const int &matrix_size) |
Call to apply kernel to apply two qubit gate kernel on an input matrix using AVX. More... | |
void | apply_2qbit_kernel_to_state_vector_input (Matrix &two_qbit_unitary, Matrix &input, const int &inner_qbit, const int &outer_qbit, const int &matrix_size) |
Call to apply kernel to apply two qubit gate kernel on a state vector. More... | |
void | apply_3qbit_kernel_to_state_vector_input (Matrix &unitary, Matrix &input, std::vector< int > involved_qbits, const int &matrix_size) |
Call to apply kernel to apply three qubit gate kernel on a state vector. More... | |
void | apply_crot_kernel_to_matrix_input (Matrix &u3_1qbit1, Matrix &u3_qbit2, Matrix &input, const int &target_qbit, const int &control_qbit, const int &matrix_size) |
Call to apply crot gate kernel on an input matrix. More... | |
void | apply_crot_kernel_to_matrix_input_AVX (Matrix &u3_1qbit1, Matrix &u3_qbit2, Matrix &input, const int &target_qbit, const int &control_qbit, const int &matrix_size) |
Call to apply crot gate kernel on an input matrix using AVX. More... | |
void | apply_large_kernel_to_input (Matrix &unitary, Matrix &input, std::vector< int > involved_qbits, const int &matrix_size) |
int | get_grain_size (int index_step) |
void apply_2qbit_kernel_to_matrix_input | ( | Matrix & | two_qbit_unitary, |
Matrix & | input, | ||
const int & | inner_qbit, | ||
const int & | outer_qbit, | ||
const int & | matrix_size | ||
) |
Call to apply kernel to apply two qubit gate kernel on an input matrix using AVX.
two_qbit_unitary | The 4x4 kernel of the gate operation |
input | The input matrix on which the transformation is applied |
inner_qbit | The lower significance qubit (little endian convention) |
outer_qbit | The higher significance qubit (little endian convention) |
matrix_size | The size of the input |
Definition at line 115 of file apply_large_kernel_to_input.cpp.
void apply_2qbit_kernel_to_state_vector_input | ( | Matrix & | two_qbit_unitary, |
Matrix & | input, | ||
const int & | inner_qbit, | ||
const int & | outer_qbit, | ||
const int & | matrix_size | ||
) |
Call to apply kernel to apply two qubit gate kernel on a state vector.
two_qbit_unitary | The 4x4 kernel of the gate operation |
input | The input matrix on which the transformation is applied |
inner_qbit | The lower significance qubit (little endian convention) |
outer_qbit | The higher significance qubit (little endian convention) |
matrix_size | The size of the input |
Definition at line 64 of file apply_large_kernel_to_input.cpp.
void apply_3qbit_kernel_to_state_vector_input | ( | Matrix & | unitary, |
Matrix & | input, | ||
std::vector< int > | involved_qbits, | ||
const int & | matrix_size | ||
) |
Call to apply kernel to apply three qubit gate kernel on a state vector.
two_qbit_unitary | The 8x8 kernel of the gate operation |
input | The input matrix on which the transformation is applied |
involved_qbits | The qubits affected by the gate in order |
matrix_size | The size of the input |
Definition at line 176 of file apply_large_kernel_to_input.cpp.
void apply_crot_kernel_to_matrix_input | ( | Matrix & | u3_1qbit1, |
Matrix & | u3_1qbit2, | ||
Matrix & | input, | ||
const int & | target_qbit, | ||
const int & | control_qbit, | ||
const int & | matrix_size | ||
) |
Call to apply crot gate kernel on an input matrix.
u3_1qbit1 | The 2x2 kernel to be applied on target |1> |
u3_1qbit2 | The 2x2 kernel to be applied on target |0> |
input | The input matrix on which the transformation is applied |
target_qbit | The target qubit |
control_qbit | The control qubit |
matrix_size | The size of the input |
Definition at line 257 of file apply_large_kernel_to_input.cpp.
void apply_crot_kernel_to_matrix_input_AVX | ( | Matrix & | u3_1qbit1, |
Matrix & | u3_1qbit2, | ||
Matrix & | input, | ||
const int & | target_qbit, | ||
const int & | control_qbit, | ||
const int & | matrix_size | ||
) |
Call to apply crot gate kernel on an input matrix using AVX.
u3_1qbit1 | The 2x2 kernel to be applied on target |1> |
u3_1qbit2 | The 2x2 kernel to be applied on target |0> |
input | The input matrix on which the transformation is applied |
target_qbit | The target qubit |
control_qbit | The control qubit |
matrix_size | The size of the input |
Definition at line 339 of file apply_large_kernel_to_input.cpp.
void apply_large_kernel_to_input | ( | Matrix & | unitary, |
Matrix & | input, | ||
std::vector< int > | involved_qbits, | ||
const int & | matrix_size | ||
) |
Definition at line 38 of file apply_large_kernel_to_input.cpp.
Definition at line 28 of file apply_large_kernel_to_input.cpp.