IsingEncoding

class IsingEncoding(operator, constant, decode_fn, metadata=None)[source]

Bases: object

Result of converting a binary polynomial problem to an Ising Hamiltonian.

The cost operator is held as a SparsePauliOp over qubits range(num_qubits).

Attributes Summary

constant

decode_fn

metadata

operator

wires

Canonical wire mapping aligned with the SPO (always range(num_qubits)).

Attributes Documentation

constant: float = <dataclasses._MISSING_TYPE object>
decode_fn: Callable[[str], Any] = <dataclasses._MISSING_TYPE object>
metadata: dict[str, object] | None = None
operator: SparsePauliOp = <dataclasses._MISSING_TYPE object>
wires

Canonical wire mapping aligned with the SPO (always range(num_qubits)).