CoherentState

Module: pennylane

class CoherentState(a, phi, wires)[source]

Prepares a coherent state.

Details:

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