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\times 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 \(\hbar\) in the commutation relation \([\x,\p]=i\hbar\).

Returns

probability of detecting the event

Return type

float

Contents

Using PennyLane

Release news

Development

API

Internals