expval

Module: pennylane

expval = <function expval>[source]

Expectation value of the supplied observable.

Parameters:op (Observable) – a quantum observable object