Using PennyLane
Release news
Development
API
Internals
Returns a coherent state.
a (complex) – the displacement
phi (float) – the phase
hbar (float) – (default 2) the value of \(\hbar\) in the commutation relation \([\x,\p]=i\hbar\)
the coherent state
array