3.6.15. qupulse.pulses.range¶
Classes
|
Like the builtin python range but with parameters. |
|
- class ParametrizedRange(*args, **kwargs)[source]¶
Bases:
objectLike the builtin python range but with parameters. Positional and keyword arguments cannot be mixed.
- Parameters:
*args – Interpreted as
(start, )or(start, stop[, step])**kwargs – Expected to contain
start,stopandstep
- Raises:
- classmethod from_range_like(range_like: range | ExpressionLike | Tuple[ExpressionLike, ExpressionLike] | Tuple[ExpressionLike, ExpressionLike, ExpressionLike])[source]¶
- property parameter_names: AbstractSet[str]¶
- start: ExpressionScalar¶
- step: ExpressionScalar¶
- stop: ExpressionScalar¶
- class RangeScope(inner: Scope, index_name: str, index_value: int)[source]¶
Bases:
Scope- change_constants(new_constants: Mapping[str, Number]) Scope[source]¶
Change values of constants. Constants not present in the scope are ignored.
- Parameters:
new_constants
Warning
NonVolatileChange: if a parameter that is not in get_volatile_parameters is updated
- Returns:
New scope instance
- get_parameter(parameter_name: str) Number[source]¶
- Parameters:
parameter_name
- Raises:
ParameterNotProvidedException if the parameter is not provided by this scope –
- Returns:
Parameter value
- get_volatile_parameters() Mapping[str, Expression][source]¶
- Returns:
A mapping where the keys are the volatile parameters and the