Sequential Quantum Gate Decomposer  v1.9.3
Powerful decomposition of general unitarias into one- and two-qubit gates gates
Classes | Functions | Variables
tests.VQE.test_VQE Namespace Reference

Classes

class  Test_VQE
 

Functions

def generate_hamiltonian (topology, n)
 

Variables

 sigmax
 
 sigmay
 
 sigmaz
 

Function Documentation

◆ generate_hamiltonian()

def tests.VQE.test_VQE.generate_hamiltonian (   topology,
  n 
)

Definition at line 20 of file test_VQE.py.

Here is the caller graph for this function:

Variable Documentation

◆ sigmax

tests.VQE.test_VQE.sigmax
Initial value:
1 = sp.sparse.csr_matrix(np.array([[0,1],
2  [1,0]])+0.j)

Definition at line 12 of file test_VQE.py.

◆ sigmay

tests.VQE.test_VQE.sigmay
Initial value:
1 = sp.sparse.csr_matrix(np.array([[0,0+-1j],
2  [0+1j,0]])+0.j)

Definition at line 14 of file test_VQE.py.

◆ sigmaz

tests.VQE.test_VQE.sigmaz
Initial value:
1 = sp.sparse.csr_matrix(np.array([[1,0],
2  [0,-1]])+0.j)

Definition at line 16 of file test_VQE.py.