Loading [MathJax]/jax/output/HTML-CSS/jax.js

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 in the commutation relation [ˆx,ˆp]=i

Returns

the coherent state

Return type

array

Contents

Using PennyLane

Release news

Development

API

Internals