qiskit.utils.apply_prefix¶
- apply_prefix(value, unit)[source]¶
Given a SI unit prefix and value, apply the prefix to convert to standard SI unit.
- প্যারামিটার
value (Union[float, ParameterExpression]) -- The number to apply prefix to.
unit (str) -- String prefix.
- রিটার্নস
Converted value.
- রিটার্ন টাইপ
float
নোট
This may induce tiny value error due to internal representation of float object. See https://docs.python.org/3/tutorial/floatingpoint.html for details.
- রেইজেস
ValueError -- If the
units
aren't recognized.- রিটার্ন টাইপ
float