3.2.3. qupulse.expressions.wrapper¶
This module contains the function :py:make_wrappers
to define wrapper classes for expression protocol implementations
which only implements methods of the protocol.
It is used for finding code that relies on expression implementation details.
Functions
|
Create wrappers for expression base, scalar and vector types that only expose the methods defined in the corresponding expression protocol classes. |
- qupulse.expressions.wrapper.make_wrappers(expr: type, expr_scalar: type, expr_vector: type) Tuple[type, type, type] [source]¶
Create wrappers for expression base, scalar and vector types that only expose the methods defined in the corresponding expression protocol classes.
The vector is currently not implemented.
- Parameters
expr – Expression base type of the implementation
expr_scalar – Expression scalar type of the implementation
expr_vector – Expression vector type of the implementation
- Returns
A tuple of (base, scalar, vector) types that wrap the given types.