SolutionEntry¶
- class SolutionEntry(bitstring: str, prob: float, decoded: Any | None = None, energy: float | None = None)[source]¶
Bases:
NamedTupleA solution entry with bitstring, probability, and optional decoded value.
- Parameters:
bitstring (
str) – Binary string representing a computational basis state.prob (
float) – Measured probability in range [0.0, 1.0].decoded (
Any|None) – Optional problem-specific decoded representation. Defaults to None.energy (
float|None) – Optional objective energy for this solution. Defaults to None.
Create new instance of SolutionEntry(bitstring, prob, decoded, energy)
Attributes Summary
Alias for field number 0
Alias for field number 2
Alias for field number 3
Alias for field number 1
Attributes Documentation