seemps.register.qubo_mpo#

seemps.register.qubo_mpo(J=None, h=None, **kwdargs)[source]#

Return the MPO associated to a QUBO operator.

The operator is defined according to the mathematical notation \(\sum_i J_{ij} s_i s_j + \sum_i h_i s_i\), with the matrix of interactions ‘J’ and the vector of local fields ‘h’. At least one of these must be provided.

Parameters:
JOptional[Operator]

Matrix of Ising coupling between qubits (Default value = None)

hOptional[Vector] :

Vector of local magnetic fields (Default value = None)

**kwdargs

Other arguments accepted by MPO

Returns:
MPO

Matrix-product operator implementing this Hamiltonian