sample

Module: pennylane

sample(op)[source]

Sample from the supplied observable, with the number of shots determined from the dev.shots attribute of the corresponding device.

Parameters:op (Observable) – a quantum observable object