QAOAHistoryItem¶
- class QAOAHistoryItem¶
Bases:
Generic[SamplingMeta_co]Record of a single objective function evaluation during QAOA optimization.
Methods
Attributes
Elapsed time from the start of optimization to when this evaluation completed.
Circuit parameter values used in this evaluation.
Objective value computed from the measurement results of this evaluation.
Measurement results as a list of
(spin_sequence, frequency)pairs.Per-call timing breakdown for the quantum circuit execution.
Backend-specific metadata returned by the quantum job (e.g., job ID and circuit for Qiskit, or simulated circuit for Qulacs).
- __eq__(other)¶
Return self==value.
- __init__(
- timestamp: timedelta,
- parameters: Sequence[float],
- objective: float,
- counts: IsingSeqFreqList,
- sampling_durations: SamplingDurations,
- sampling_meta: SamplingMeta_co,
- __repr__()¶
Return repr(self).
- __dataclass_fields__ = {'counts': Field(name='counts',type='IsingSeqFreqList',default=<dataclasses._MISSING_TYPE object>,default_factory=<dataclasses._MISSING_TYPE object>,init=True,repr=True,hash=None,compare=True,metadata=mappingproxy({}),kw_only=False,_field_type=_FIELD), 'objective': Field(name='objective',type='float',default=<dataclasses._MISSING_TYPE object>,default_factory=<dataclasses._MISSING_TYPE object>,init=True,repr=True,hash=None,compare=True,metadata=mappingproxy({}),kw_only=False,_field_type=_FIELD), 'parameters': Field(name='parameters',type='Sequence[float]',default=<dataclasses._MISSING_TYPE object>,default_factory=<dataclasses._MISSING_TYPE object>,init=True,repr=True,hash=None,compare=True,metadata=mappingproxy({}),kw_only=False,_field_type=_FIELD), 'sampling_durations': Field(name='sampling_durations',type='SamplingDurations',default=<dataclasses._MISSING_TYPE object>,default_factory=<dataclasses._MISSING_TYPE object>,init=True,repr=True,hash=None,compare=True,metadata=mappingproxy({}),kw_only=False,_field_type=_FIELD), 'sampling_meta': Field(name='sampling_meta',type='SamplingMeta_co',default=<dataclasses._MISSING_TYPE object>,default_factory=<dataclasses._MISSING_TYPE object>,init=True,repr=True,hash=None,compare=True,metadata=mappingproxy({}),kw_only=False,_field_type=_FIELD), 'timestamp': Field(name='timestamp',type='timedelta',default=<dataclasses._MISSING_TYPE object>,default_factory=<dataclasses._MISSING_TYPE object>,init=True,repr=True,hash=None,compare=True,metadata=mappingproxy({}),kw_only=False,_field_type=_FIELD)}¶
- __dataclass_params__ = _DataclassParams(init=True,repr=True,eq=True,order=False,unsafe_hash=False,frozen=False)¶
- __hash__ = None¶
- __match_args__ = ('timestamp', 'parameters', 'objective', 'counts', 'sampling_durations', 'sampling_meta')¶
- counts: IsingSeqFreqList¶
Measurement results as a list of
(spin_sequence, frequency)pairs.
- sampling_durations: SamplingDurations¶
Per-call timing breakdown for the quantum circuit execution.
- sampling_meta: SamplingMeta_co¶
Backend-specific metadata returned by the quantum job (e.g., job ID and circuit for Qiskit, or simulated circuit for Qulacs).
- timestamp: timedelta¶
Elapsed time from the start of optimization to when this evaluation completed.