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) |
Variables | |
decomp = N_Qubit_Decomposition( Umtx.conj().T ) | |
decomposed_matrix = utils.get_unitary_from_qiskit_circuit( quantum_circuit ) | |
tuple | decomposition_error = (np.real(np.trace(product_matrix)))/2 |
filename | |
fold | |
dictionary | gate_structure = { 4: create_custom_gate_structure(4), 2: create_custom_gate_structure(2)} |
interactive | |
matrix_size = int(2**qbit_num) | |
output | |
phase = np.angle(product_matrix[0,0]) | |
product_matrix = np.dot(Umtx,decomposed_matrix.conj().T) | |
int | qbit_num = 2 |
quantum_circuit = decomp.get_Qiskit_Circuit() | |
True | |
Umtx = unitary_group.rvs(matrix_size) | |
def example_CH_general_unitary.create_custom_gate_structure | ( | qbit_num | ) |
Definition at line 34 of file example_CH_general_unitary.py.
example_CH_general_unitary.decomp = N_Qubit_Decomposition( Umtx.conj().T ) |
Definition at line 82 of file example_CH_general_unitary.py.
example_CH_general_unitary.decomposed_matrix = utils.get_unitary_from_qiskit_circuit( quantum_circuit ) |
Definition at line 108 of file example_CH_general_unitary.py.
tuple example_CH_general_unitary.decomposition_error = (np.real(np.trace(product_matrix)))/2 |
Definition at line 115 of file example_CH_general_unitary.py.
example_CH_general_unitary.filename |
Definition at line 120 of file example_CH_general_unitary.py.
example_CH_general_unitary.fold |
Definition at line 120 of file example_CH_general_unitary.py.
dictionary example_CH_general_unitary.gate_structure = { 4: create_custom_gate_structure(4), 2: create_custom_gate_structure(2)} |
Definition at line 86 of file example_CH_general_unitary.py.
example_CH_general_unitary.interactive |
Definition at line 120 of file example_CH_general_unitary.py.
Definition at line 76 of file example_CH_general_unitary.py.
example_CH_general_unitary.output |
Definition at line 120 of file example_CH_general_unitary.py.
example_CH_general_unitary.phase = np.angle(product_matrix[0,0]) |
Definition at line 110 of file example_CH_general_unitary.py.
Definition at line 109 of file example_CH_general_unitary.py.
int example_CH_general_unitary.qbit_num = 2 |
Definition at line 73 of file example_CH_general_unitary.py.
example_CH_general_unitary.quantum_circuit = decomp.get_Qiskit_Circuit() |
Definition at line 99 of file example_CH_general_unitary.py.
example_CH_general_unitary.True |
Definition at line 120 of file example_CH_general_unitary.py.
example_CH_general_unitary.Umtx = unitary_group.rvs(matrix_size) |
Definition at line 79 of file example_CH_general_unitary.py.