quantify_scheduler.helpers.validators
Module Contents
Classes
Requires a number of type int, float, numpy.integer or numpy.floating. |
|
Validator used for durations. It allows all numbers greater than or equal to 0. |
|
Validator used for amplitudes. It allows all numbers and nan. |
|
Validator used for frequencies. It allows positive numbers and nan. |
|
Validator used for delays. It allows all numbers. |
- class Numbers(min_value: qcodes.utils.validators.numbertypes = -float('inf'), max_value: qcodes.utils.validators.numbertypes = float('inf'), allow_nan: bool = False)[source]
Bases:
qcodes.utils.validators.Numbers
Requires a number of type int, float, numpy.integer or numpy.floating.
- Parameters
min_value – Minimal value allowed, default -inf.
max_value – Maximal value allowed, default inf.
- Raises
TypeError – If min or max value not a number. Or if min_value is larger than the max_value.
Requires a number of type int, float, numpy.integer or numpy.floating.
- Parameters
min_value – Minimal value allowed, default -inf.
max_value – Maximal value allowed, default inf.
allow_nan – if nan values are allowed, default False.
- Raises
TypeError – If min or max value not a number. Or if min_value is: larger than the max_value.
- class _Durations[source]
Bases:
Numbers
Validator used for durations. It allows all numbers greater than or equal to 0.
Requires a number of type int, float, numpy.integer or numpy.floating.
- Parameters
min_value – Minimal value allowed, default -inf.
max_value – Maximal value allowed, default inf.
allow_nan – if nan values are allowed, default False.
- Raises
TypeError – If min or max value not a number. Or if min_value is: larger than the max_value.
- class _Amplitudes[source]
Bases:
Numbers
Validator used for amplitudes. It allows all numbers and nan.
Requires a number of type int, float, numpy.integer or numpy.floating.
- Parameters
min_value – Minimal value allowed, default -inf.
max_value – Maximal value allowed, default inf.
allow_nan – if nan values are allowed, default False.
- Raises
TypeError – If min or max value not a number. Or if min_value is: larger than the max_value.
- class _NonNegativeFrequencies[source]
Bases:
Numbers
Validator used for frequencies. It allows positive numbers and nan.
Requires a number of type int, float, numpy.integer or numpy.floating.
- Parameters
min_value – Minimal value allowed, default -inf.
max_value – Maximal value allowed, default inf.
allow_nan – if nan values are allowed, default False.
- Raises
TypeError – If min or max value not a number. Or if min_value is: larger than the max_value.
- class _Delays[source]
Bases:
Numbers
Validator used for delays. It allows all numbers.
Requires a number of type int, float, numpy.integer or numpy.floating.
- Parameters
min_value – Minimal value allowed, default -inf.
max_value – Maximal value allowed, default inf.
allow_nan – if nan values are allowed, default False.
- Raises
TypeError – If min or max value not a number. Or if min_value is: larger than the max_value.