SqueezedState

Module: pennylane

class SqueezedState(r, phi, wires)[source]

Prepares a squeezed vacuum state.

Details:

  • Number of wires: 1
  • Number of parameters: 2
  • Gradient recipe: None (uses finite difference)
Parameters:
  • r (float) – squeezing magnitude
  • phi (float) – squeezing angle \(\phi\)
  • wires (Sequence[int] or int) – the wire the operation acts on