qml.operation.ObservableReturnTypes

class ObservableReturnTypes[source]

Bases: enum.Enum

Enumeration class to represent the return types of an observable.

Expectation

Probability

Sample

State

Variance

Expectation = 'expval'
Probability = 'probs'
Sample = 'sample'
State = 'state'
Variance = 'var'