qml.transforms.expand_multipar¶
- expand_multipar(tape, depth=10, **kwargs)¶
Expand out a tape so that all its parametrized operations have a single parameter.
This is achieved by decomposing all parametrized operations that do not have a generator, up to maximum depth
depth
. For a sufficientdepth
, it should always be possible to obtain a tape containing only single-parameter operations.- Parameters
tape (QuantumTape) – the input tape to expand
depth (int) – the maximum expansion depth
**kwargs – additional keyword arguments are ignored
- Returns
the expanded tape
- Return type
code/api/pennylane.transforms.expand_multipar
Download Python script
Download Notebook
View on GitHub