NativeIsingConverter

class NativeIsingConverter(zero_tol=1e-12)[source]

Bases: BinaryToIsingConverter

Convert binary polynomials to Ising operators by exact substitution x=(1-Z)/2.

zero_tol is applied relative to the largest accumulated coefficient on both the input and output sides.

Attributes Summary

zero_tol

Relative tolerance for pruning accumulated Z-product weights and input-polynomial coefficients.

Methods Summary

convert(problem)

Convert a canonical binary-polynomial problem to an Ising Hamiltonian.

Attributes Documentation

zero_tol: float = 1e-12

Relative tolerance for pruning accumulated Z-product weights and input-polynomial coefficients.

Methods Documentation

convert(problem)[source]

Convert a canonical binary-polynomial problem to an Ising Hamiltonian.

Return type:

IsingEncoding