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

Simple example python code demonstrating the a decomposiiton of a deep circuit. More...

Go to the source code of this file.

Namespaces

 example_evolutionary
 

Variables

 example_evolutionary.backend = Aer.get_backend('unitary_simulator')
 Qiskit backend for simulator. More...
 
 example_evolutionary.cDecompose = N_Qubit_Decomposition_adaptive( Umtx.conj().T, config=config )
 [creating decomp class] More...
 
dictionary example_evolutionary.config
 gate systhesis ##################################### More...
 
 example_evolutionary.decomposed_matrix = utils.get_unitary_from_qiskit_circuit( quantum_circuit )
 
tuple example_evolutionary.decomposition_error = (np.real(np.trace(product_matrix)))/2
 
 example_evolutionary.job = execute(qc, backend)
 job execution and getting the result as an object More...
 
int example_evolutionary.levels = 5
 [creating decomp class] More...
 
 example_evolutionary.parameter_num = cDecompose.get_Parameter_Num()
 [set adaptive gate structure] More...
 
 example_evolutionary.parameters = np.zeros( (parameter_num,1), dtype=np.float64 )
 
 example_evolutionary.phase = np.angle(product_matrix[0,0])
 
 example_evolutionary.product_matrix = np.dot(Umtx,decomposed_matrix.conj().T)
 
 example_evolutionary.qc = QuantumCircuit.from_qasm_file( '../../benchmarks/IBM/alu-v4_37.qasm')
 
 example_evolutionary.quantum_circuit = cDecompose.get_Qiskit_Circuit()
 [set parameters] More...
 
 example_evolutionary.result = job.result()
 the result of the Qiskit job More...
 
 example_evolutionary.Umtx = result.get_unitary(qc)
 the unitary matrix from the result object More...
 

Detailed Description

Simple example python code demonstrating the a decomposiiton of a deep circuit.

Simple example python code demonstrating a state preparation experiment.

Definition in file example_evolutionary.py.