P

Module: pennylane

class P(wires)[source]

The momentum quadrature observable \(\hat{p}\).

When used with the expval() function, the momentum expectation value \(\braket{\hat{p}}\) is returned. This corresponds to the mean displacement in the phase space along the \(p\) axis.

Details:

  • Number of wires: 1

  • Number of parameters: 0

  • Observable order: 1st order in the quadrature operators

  • Heisenberg representation:

    \[d = [0, 0, 1]\]
Parameters:wires (Sequence[int] or int) – the wire the operation acts on