Sequential Quantum Gate Decomposer  v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
Variables
example_bfgs2 Namespace Reference

Variables

 cDecompose = N_Qubit_Decomposition_adaptive( Umtx.conj().T, config=config, level_limit_max=5, level_limit_min=1 )
 
dictionary config
 
 data = loadmat('examples/decomposition/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
 
dictionary iteration_loops = {4: 3, 3: 3, 2: 3}
 
 matrix_size = len(Umtx)
 [load Umtx] More...
 
string method = "basin_hopping"
 [create decomposition class] creating a class to decompose the unitary 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...
 

Variable Documentation

◆ cDecompose

example_bfgs2.cDecompose = N_Qubit_Decomposition_adaptive( Umtx.conj().T, config=config, level_limit_max=5, level_limit_min=1 )

Definition at line 83 of file example_bfgs2.py.

◆ config

dictionary example_bfgs2.config
Initial value:
1 = {"use_basin_hopping": 1,
2  "bh_T": 1.0, "bh_stepsize": 0.5, "bh_interval": 50,
3  "bh_target_accept_rate": 0.5, "bh_stepwise_factor": 0.9}

Definition at line 67 of file example_bfgs2.py.

◆ data

example_bfgs2.data = loadmat('examples/decomposition/Umtx.mat')

load the unitary from file

Definition at line 51 of file example_bfgs2.py.

◆ decomposed_matrix

example_bfgs2.decomposed_matrix = utils.get_unitary_from_qiskit_circuit( quantum_circuit )

the unitary matrix from the result object

Definition at line 113 of file example_bfgs2.py.

◆ decomposition_error

tuple example_bfgs2.decomposition_error = (np.real(np.trace(product_matrix)))/2

Definition at line 120 of file example_bfgs2.py.

◆ iteration_loops

dictionary example_bfgs2.iteration_loops = {4: 3, 3: 3, 2: 3}

Definition at line 65 of file example_bfgs2.py.

◆ matrix_size

example_bfgs2.matrix_size = len(Umtx)

[load Umtx]

Definition at line 58 of file example_bfgs2.py.

◆ method

string example_bfgs2.method = "basin_hopping"

[create decomposition class] creating a class to decompose the unitary

Definition at line 62 of file example_bfgs2.py.

◆ phase

example_bfgs2.phase = np.angle(product_matrix[0,0])

Definition at line 115 of file example_bfgs2.py.

◆ product_matrix

int example_bfgs2.product_matrix = np.dot(Umtx,decomposed_matrix.conj().T)

Definition at line 114 of file example_bfgs2.py.

◆ quantum_circuit

example_bfgs2.quantum_circuit = cDecompose.get_Qiskit_Circuit()

[create decomposition class]

[start decomposition] starting the decomposition [start decomposition] [qiskit] Qiskit quantum circuit

Definition at line 106 of file example_bfgs2.py.

◆ Umtx

example_bfgs2.Umtx = data['Umtx']

The unitary to be decomposed.

Definition at line 53 of file example_bfgs2.py.