IsingEncoding¶
- class IsingEncoding(operator, constant, decode_fn, metadata=None)[source]¶
Bases:
objectResult of converting a binary polynomial problem to an Ising Hamiltonian.
The cost operator is held as a
SparsePauliOpover qubitsrange(num_qubits).Attributes Summary
Canonical wire mapping aligned with the SPO (always
range(num_qubits)).Attributes Documentation
- operator: SparsePauliOp = <dataclasses._MISSING_TYPE object>¶
- wires¶
Canonical wire mapping aligned with the SPO (always
range(num_qubits)).