# qml.operation.CV¶

class CV[source]

Bases: object

A mixin base class denoting a continuous-variable operation.

supports_heisenberg = False
 heisenberg_expand(U, wires) Expand the given local Heisenberg-picture array into a full-system one.
heisenberg_expand(U, wires)[source]

Expand the given local Heisenberg-picture array into a full-system one.

Parameters
• U (array[float]) – array to expand (expected to be of the dimension 1+2*self.num_wires)

• wires (Wires) – wires on the device the array U should be expanded to apply to

Raises

ValueError – if the size of the input matrix is invalid or num_wires is incorrect

Returns

expanded array, dimension 1+2*num_wires

Return type

array[float]