qml.devices.default_gaussian.coherent_state

coherent_state(a, phi=0, hbar=2.0)[source]

Returns a coherent state.

Parameters
  • a (complex) – the displacement

  • phi (float) – the phase

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

Returns

the coherent state

Return type

array

Contents

Using PennyLane

Release news

Development

API

Internals