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

Simple example python code demonstrating the basic usage of the Python interface of the Quantum Gate Decomposer package. More...

Go to the source code of this file.

Namespaces

 example
 

Variables

 example.cDecompose = N_Qubit_Decomposition_adaptive( Umtx.conj().T, level_limit_max=5, level_limit_min=1 )
 [create decomposition class] creating a class to decompose the unitary More...
 
 example.data = loadmat('Umtx.mat')
 load the unitary from file More...
 
 example.decomposed_matrix = utils.get_unitary_from_qiskit_circuit( quantum_circuit )
 the unitary matrix from the result object More...
 
tuple example.decomposition_error = (np.real(np.trace(product_matrix)))/2
 
 example.matrix_size = len(Umtx)
 [load Umtx] More...
 
 example.phase = np.angle(product_matrix[0,0])
 
 example.product_matrix = np.dot(Umtx,decomposed_matrix.conj().T)
 
 example.quantum_circuit = cDecompose.get_Qiskit_Circuit()
 [create decomposition class] More...
 
 example.Umtx = data['Umtx']
 The unitary to be decomposed. More...
 

Detailed Description

Simple example python code demonstrating the basic usage of the Python interface of the Quantum Gate Decomposer package.

Definition in file example.py.