Sequential Quantum Gate Decomposer
v1.9.3
Powerful decomposition of general unitarias into one- and two-qubit gates gates
|
Functions | |
def | create_custom_gate_structure (qbit_num, level_num=2) |
Variables | |
def | entropy = gate_structure.get_Second_Renyi_Entropy( parameters=parameters, qubit_list=qubit_list ) |
def | gate_structure = create_custom_gate_structure( qbit_num, level_num ) |
int | level_num = 15 |
def | num_of_parameters = gate_structure.get_Parameter_Num() |
float | page_entropy = len(qubit_list) * np.log(2.0) - 1.0/( pow(2, qbit_num-2*len(qubit_list)+1) ) |
parameters = np.random.uniform( 0.0, 2*np.pi, (num_of_parameters,) ) | |
int | qbit_num = 22 |
list | qubit_list = [0,1] |
def Renyi_entropy.create_custom_gate_structure | ( | qbit_num, | |
level_num = 2 |
|||
) |
Create gate structure
Definition at line 28 of file Renyi_entropy.py.
def Renyi_entropy.entropy = gate_structure.get_Second_Renyi_Entropy( parameters=parameters, qubit_list=qubit_list ) |
Definition at line 102 of file Renyi_entropy.py.
def Renyi_entropy.gate_structure = create_custom_gate_structure( qbit_num, level_num ) |
Definition at line 87 of file Renyi_entropy.py.
int Renyi_entropy.level_num = 15 |
Definition at line 85 of file Renyi_entropy.py.
def Renyi_entropy.num_of_parameters = gate_structure.get_Parameter_Num() |
Definition at line 91 of file Renyi_entropy.py.
float Renyi_entropy.page_entropy = len(qubit_list) * np.log(2.0) - 1.0/( pow(2, qbit_num-2*len(qubit_list)+1) ) |
Definition at line 106 of file Renyi_entropy.py.
Renyi_entropy.parameters = np.random.uniform( 0.0, 2*np.pi, (num_of_parameters,) ) |
Definition at line 95 of file Renyi_entropy.py.
int Renyi_entropy.qbit_num = 22 |
Definition at line 84 of file Renyi_entropy.py.
list Renyi_entropy.qubit_list = [0,1] |
Definition at line 99 of file Renyi_entropy.py.