ParamObj
- class pulser.parametrized.ParamObj(cls, *args, **kwargs)
Bases:
Parametrized
,OpSupport
Holds a call to a given class.
When called, a ParamObj instance returns cls(*args, **kwargs).
- Parameters:
cls (
Callable
) – The object to call. Usually it’s a class that’s instantiated when called.args (
Any
) – The args for calling cls.kwargs (
Any
) – The kwargs for calling cls.
Attributes
Returns all involved variables.
Methods
Builds the object with its variables last assigned values.
Calculates the trigonometric cosine of the object.
Calculates the exponential of the object.
Calculates the natural logarithm of the object.
Calculates the base-2 logarithm of the object.
Rounds the value to the nearest int.
Calculates the trigonometric sine of the object.
Calculates the square root of the object.
Calculates the trigonometric tangent of the object.
Calculates the hyperbolic tangent of the object.
Signatures
- build()
Builds the object with its variables last assigned values.
- Return type:
Any
- cos()
Calculates the trigonometric cosine of the object.
- Return type:
- exp()
Calculates the exponential of the object.
- Return type:
- log()
Calculates the natural logarithm of the object.
- Return type:
- log2()
Calculates the base-2 logarithm of the object.
- Return type:
- rint()
Rounds the value to the nearest int.
- Return type:
- sin()
Calculates the trigonometric sine of the object.
- Return type:
- sqrt()
Calculates the square root of the object.
- Return type:
- tan()
Calculates the trigonometric tangent of the object.
- Return type:
- tanh()
Calculates the hyperbolic tangent of the object.
- Return type:
- property variables: dict[str, Variable]
Returns all involved variables.