mindquantum.dtype.to_single_precision

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

Convert type to single precision.

Parameters

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

Examples

>>> from mindquantum import to_single_precision, complex128
>>> to_single_precision(complex128)
mindquantum.complex64