seemps.register.qubo_mpo#

seemps.register.qubo_mpo(J: TypeAliasForwardRef('~seemps.typing.Operator') | None = None, h: TypeAliasForwardRef('~seemps.typing.Vector') | None = None, strategy: Strategy = DEFAULT_STRATEGY) MPO[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:
JOperator | None

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

hVector | None :

Vector of local magnetic fields (Default value = None)

strategyStrategy, default = DEFAULT_STRATEGY

Other arguments accepted by MPO

Returns:
MPO

Matrix-product operator implementing this Hamiltonian