mindquantum.dtype.is_double_precision

View Source On Gitee
mindquantum.dtype.is_double_precision(dtype)[source]

Check whether a type is double precision or not.

Parameters

dtype (mindquantum.dtype) – The data type supported by mindquantum.

Examples

>>> from mindquantum import is_double_precision, complex128
>>> is_double_precision(complex128)
True