as_quantity¶
- macro_lightning.utils.as_quantity(arg)[source]¶
Convert argument to a Quantity (or raise
NotImplementedError
).from
utils
.- Returns
Quantity
not copied, quantity subclasses passed through.
- Raises
NotImplementedError
if
Quantity(arg)
fails