Sequential Quantum Gate Decomposer  v1.9.3
Powerful decomposition of general unitarias into one- and two-qubit gates gates
Functions
apply_large_kernel_to_input.cpp File Reference
#include "apply_large_kernel_to_input.h"
#include "tbb/tbb.h"
Include dependency graph for apply_large_kernel_to_input.cpp:

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_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. More...
 
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. 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)
 

Function Documentation

◆ apply_2qbit_kernel_to_matrix_input()

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.

Parameters
two_qbit_unitaryThe 4x4 kernel of the gate operation
inputThe input matrix on which the transformation is applied
inner_qbitThe lower significance qubit (little endian convention)
outer_qbitThe higher significance qubit (little endian convention)
matrix_sizeThe size of the input

Definition at line 115 of file apply_large_kernel_to_input.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ apply_2qbit_kernel_to_state_vector_input()

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.

Parameters
two_qbit_unitaryThe 4x4 kernel of the gate operation
inputThe input matrix on which the transformation is applied
inner_qbitThe lower significance qubit (little endian convention)
outer_qbitThe higher significance qubit (little endian convention)
matrix_sizeThe size of the input

Definition at line 64 of file apply_large_kernel_to_input.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ apply_3qbit_kernel_to_state_vector_input()

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.

Parameters
two_qbit_unitaryThe 8x8 kernel of the gate operation
inputThe input matrix on which the transformation is applied
involved_qbitsThe qubits affected by the gate in order
matrix_sizeThe size of the input

Definition at line 176 of file apply_large_kernel_to_input.cpp.

Here is the call graph for this function:

◆ apply_crot_kernel_to_matrix_input()

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.

Parameters
u3_1qbit1The 2x2 kernel to be applied on target |1>
u3_1qbit2The 2x2 kernel to be applied on target |0>
inputThe input matrix on which the transformation is applied
target_qbitThe target qubit
control_qbitThe control qubit
matrix_sizeThe size of the input

Definition at line 257 of file apply_large_kernel_to_input.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ apply_crot_kernel_to_matrix_input_AVX()

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.

Parameters
u3_1qbit1The 2x2 kernel to be applied on target |1>
u3_1qbit2The 2x2 kernel to be applied on target |0>
inputThe input matrix on which the transformation is applied
target_qbitThe target qubit
control_qbitThe control qubit
matrix_sizeThe size of the input

Definition at line 339 of file apply_large_kernel_to_input.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ apply_large_kernel_to_input()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_grain_size()

int get_grain_size ( int  index_step)

Definition at line 28 of file apply_large_kernel_to_input.cpp.

Here is the caller graph for this function: