Sequential Quantum Gate Decomposer  v1.9.3
Powerful decomposition of general unitarias into one- and two-qubit gates gates
Namespaces | Functions | Variables
Renyi_entropy.py File Reference

Go to the source code of this file.

Namespaces

 Renyi_entropy
 

Functions

def Renyi_entropy.create_custom_gate_structure (qbit_num, level_num=2)
 

Variables

def Renyi_entropy.entropy = gate_structure.get_Second_Renyi_Entropy( parameters=parameters, qubit_list=qubit_list )
 
def Renyi_entropy.gate_structure = create_custom_gate_structure( qbit_num, level_num )
 
int Renyi_entropy.level_num = 15
 
def Renyi_entropy.num_of_parameters = gate_structure.get_Parameter_Num()
 
float Renyi_entropy.page_entropy = len(qubit_list) * np.log(2.0) - 1.0/( pow(2, qbit_num-2*len(qubit_list)+1) )
 
 Renyi_entropy.parameters = np.random.uniform( 0.0, 2*np.pi, (num_of_parameters,) )
 
int Renyi_entropy.qbit_num = 22
 
list Renyi_entropy.qubit_list = [0,1]