Skip to content
Pasqal Documentation

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

variables

Returns all involved variables.

Methods

build

Builds the object with its variables last assigned values.

cos

Calculates the trigonometric cosine of the object.

exp

Calculates the exponential of the object.

log

Calculates the natural logarithm of the object.

log2

Calculates the base-2 logarithm of the object.

rint

Rounds the value to the nearest int.

sin

Calculates the trigonometric sine of the object.

sqrt

Calculates the square root of the object.

tan

Calculates the trigonometric tangent of the object.

tanh

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:

ParamObj

exp()

Calculates the exponential of the object.

Return type:

ParamObj

log()

Calculates the natural logarithm of the object.

Return type:

ParamObj

log2()

Calculates the base-2 logarithm of the object.

Return type:

ParamObj

rint()

Rounds the value to the nearest int.

Return type:

ParamObj

sin()

Calculates the trigonometric sine of the object.

Return type:

ParamObj

sqrt()

Calculates the square root of the object.

Return type:

ParamObj

tan()

Calculates the trigonometric tangent of the object.

Return type:

ParamObj

tanh()

Calculates the hyperbolic tangent of the object.

Return type:

ParamObj

property variables: dict[str, Variable]

Returns all involved variables.