qiskit_addon_cutting.utils.observable_grouping.ObservableCollection¶
- class ObservableCollection(observables, /)[source]¶
Collection of observables organized for efficient taking of measurements.
The observables are automatically organized into sets of mutually qubit-wise commuting observables, each represented by a
CommutingObservableGroup
.Assign member variables.
- Parameters:
observables (PauliList | Iterable[Pauli]) – Observables of interest
- __init__(observables, /)[source]¶
Assign member variables.
- Parameters:
observables (PauliList | Iterable[Pauli]) – Observables of interest
Methods
__init__
(observables, /)Assign member variables.
construct_general_observables
(...)Construct the most general observable from each set of mutually commuting observables.
Attributes
groups
List of
CommutingObservableGroup
s which, together, contain all desired observables.lookup
Get dict which maps each
Pauli
observable to a list of indices,(i, j)
, to commuting observables ingroups
.