qml.devices.default_gaussian.vacuum_state

vacuum_state(wires, hbar=2.0)[source]

Returns the vacuum state.

Parameters
  • wires (int) – the number of wires to initialize in the vacuum state

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

Returns

the vacuum state

Return type

array

Contents

Using PennyLane

Release news

Development

API

Internals