braket.parametric.parameterizable module
- class braket.parametric.parameterizable.Parameterizable[source]
Bases:
ABC
A parameterized object is the abstract definition of an object that can take in FreeParameterExpressions.
- abstract property parameters: list[FreeParameterExpression | FreeParameter | float]
Get the parameters.
- Returns:
list[Union[FreeParameterExpression, FreeParameter, float]] – The parameters associated with the object, either unbound free parameter expressions or bound values. The order of the parameters is determined by the subclass.
- abstract bind_values(**kwargs: FreeParameter | str) Any [source]
Takes in parameters and returns an object with specified parameters replaced with their values.
- Parameters:
**kwargs (Union[FreeParameter, str]) – Arbitrary keyword arguments.
- Returns:
Any – The result object will depend on the implementation of the object being bound.