|
Sequential Quantum Gate Decomposer
v1.9.3
Powerful decomposition of general unitarias into one- and two-qubit gates gates
|
Variables | |
| 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... | |
| data = loadmat('Umtx.mat') | |
| load the unitary from file More... | |
| decomposed_matrix = utils.get_unitary_from_qiskit_circuit( quantum_circuit ) | |
| the unitary matrix from the result object More... | |
| tuple | decomposition_error = (np.real(np.trace(product_matrix)))/2 |
| matrix_size = len(Umtx) | |
| [load Umtx] More... | |
| phase = np.angle(product_matrix[0,0]) | |
| product_matrix = np.dot(Umtx,decomposed_matrix.conj().T) | |
| quantum_circuit = cDecompose.get_Qiskit_Circuit() | |
| [create decomposition class] More... | |
| Umtx = data['Umtx'] | |
| The unitary to be decomposed. More... | |
| 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
Definition at line 62 of file example.py.
| example.data = loadmat('Umtx.mat') |
load the unitary from file
Definition at line 51 of file example.py.
| example.decomposed_matrix = utils.get_unitary_from_qiskit_circuit( quantum_circuit ) |
the unitary matrix from the result object
Definition at line 90 of file example.py.
| tuple example.decomposition_error = (np.real(np.trace(product_matrix)))/2 |
Definition at line 97 of file example.py.
| example.matrix_size = len(Umtx) |
[load Umtx]
Definition at line 58 of file example.py.
| example.phase = np.angle(product_matrix[0,0]) |
Definition at line 92 of file example.py.
Definition at line 91 of file example.py.
| example.quantum_circuit = cDecompose.get_Qiskit_Circuit() |
[create decomposition class]
[start decomposition] starting the decomposition [start decomposition] [qiskit] Qiskit quantum circuit
Definition at line 83 of file example.py.
| example.Umtx = data['Umtx'] |
The unitary to be decomposed.
Definition at line 53 of file example.py.
1.8.13