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:
- Returns:
MPOMatrix-product operator implementing this Hamiltonian