expand_nonunitary_gen(tape, depth=10, **kwargs)¶
Expand out a tape so that all its parametrized operations have a unitary generator.
This is achieved by decomposing all parametrized operations that either do not have a generator or have a non-unitary generator, up to maximum depth
depth. For a sufficient
depth, it should always be possible to obtain a tape containing only unitarily generated operations.
- What is PennyLane?
- Quantum circuits
- Gradients and training
- Quantum operators
- Inspecting circuits
- Quantum Chemistry
- Decorators and utility functions