qml.templates.core

Warning

Unless you are a PennyLane developer, you likely do not need to use these classes directly.

This module contains the abstractions for defining subroutines.

Subroutine(definition, *[, setup_inputs, ...])

The definition of a Subroutine, compatible both with program capture and backwards compatible with operators.

SubroutineOp(subroutine, bound_args, ...[, ...])

An operator constructed from a Subroutine together with its bound arguments.