qml.decomposition.pow_resource_rep
-
pow_resource_rep(base_class, base_params, z)[source]
Creates a CompressedResourceOp
representation of the power of an operator.
- Parameters
base_class – the base operator type
base_params (dict) – the resource params of the base operator
z (int or float) – the power
code/api/pennylane.decomposition.pow_resource_rep