Loading [MathJax]/jax/output/HTML-CSS/jax.js

qml.devices.default_gaussian.fock_prob

fock_prob(cov, mu, event, hbar=2.0)[source]

Returns the probability of detection of a particular PNR detection event.

For more details, see:

Parameters
  • cov (array) – 2N×2N covariance matrix

  • mu (array) – length-2N means vector

  • event (array) – length-N array of non-negative integers representing the PNR detection event of the multi-mode system.

  • hbar (float) – (default 2) the value of in the commutation relation [ˆx,ˆp]=i.

Returns

probability of detecting the event

Return type

float

Contents

Using PennyLane

Release news

Development

API

Internals