EnergyVariance
- class pulser.backend.EnergyVariance(*, evaluation_times=None, tag_suffix=None, default_aggregation_method=AggregationMethod.SKIP_WARN)
Bases:
ObservableStores the variance of the Hamiltonian at the evaluation times.
The variance of the Hamiltonian at time
tis calculated by<φ(t)|H(t)^2|φ(t)> - <φ(t)|H(t)|φ(t)>^2- Parameters:
evaluation_times (
Sequence[float] |None, default:None) – The relative times at which to compute the variance. If left as None, uses thedefault_evaluation_timesof the backend’sEmulationConfig.tag_suffix (
str|None, default:None) – An optional suffix to append to the tag. Needed if multiple instances of the same observable are given to the same EmulationConfig.default_aggregation_method (
AggregationMethod, default:<AggregationMethod.SKIP_WARN: 1>) – How to combine the values of this observable from multiple results.
Attributes
How the values from multiple results are combined.
Label for the observable, used to index the Results object.
A universal unique identifier for this instance.
evaluation_timesMethods
Calculates the observable to store in the Results.
Signatures
- apply(*, state, hamiltonian, **kwargs)
Calculates the observable to store in the Results.
- Return type:
Any
- property default_aggregation_method: AggregationMethod
How the values from multiple results are combined.
- property tag: str
Label for the observable, used to index the Results object.
Within a Results instance, all computed observables must have different tags.
- Returns:
The tag of the observable.
- property uuid: UUID
A universal unique identifier for this instance.
