3.7.15. qupulse.pulses.range¶
Classes
|
Like the builtin python range but with parameters. |
|
- class qupulse.pulses.range.ParametrizedRange(*args, **kwargs)[source]¶
Bases:
object
Like 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
,stop
andstep
- Raises
- __init__(*args, **kwargs)[source]¶
Like the builtin python range but with parameters. Positional and keyword arguments cannot be mixed.
- class qupulse.pulses.range.RangeScope(inner: qupulse.parameter_scope.Scope, index_name: str, index_value: int)[source]¶
Bases:
qupulse.parameter_scope.Scope
- as_dict() Mapping[str, numbers.Number] [source]¶
- change_constants(new_constants: Mapping[str, numbers.Number]) qupulse.parameter_scope.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) numbers.Number [source]¶
- Parameters
parameter_name –
- Raises
ParameterNotProvidedException if the parameter is not provided by this scope –
- Returns
Parameter value
- get_volatile_parameters() Mapping[str, qupulse.expressions.sympy.Expression] [source]¶
- Returns
A mapping where the keys are the volatile parameters and the