qml.templates.core.adjoint_subroutine_resource_rep¶
- adjoint_subroutine_resource_rep(subroutine, *args, **kwargs)[source]¶
Generate a
CompressedResourceOpsimilar toadjoint_resource_rep()that is more specifically targeted for use withSubroutineinstances.- 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:
Note
See
subroutine_resource_rep()for more information.
code/api/pennylane.templates.core.adjoint_subroutine_resource_rep
Download Python script
Download Notebook
View on GitHub