sf.ops.New
-
New
(n=1)[source]
Adds new subsystems to the quantum register.
The new modes are prepared in the vacuum state.
Must only be called in a Program
context.
- Parameters
n (int) – number of subsystems to add
- Returns
tuple of the newly added subsystem references
- Return type
tuple[RegRef]
code/api/strawberryfields.ops.New