qml.templates.core.adjoint_subroutine_resource_rep

adjoint_subroutine_resource_rep(subroutine, *args, **kwargs)[source]

Generate a CompressedResourceOp similar to adjoint_resource_rep() that is more specifically targeted for use with Subroutine instances.

Parameters:

subroutine (Subroutine) – the subroutine whose adjoint we are going to use in a decomposition.

Returns:

a condensed representation of the subroutine’s adjoint that can be used in specifying the resources of another function.

Return type:

pennylane.decomposition.CompressedResourceOp

Note

See subroutine_resource_rep() for more information.