mindquantum.dtype.to_np_type

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

Convert type to numpy data type.

Parameters

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

Examples

>>> from mindquantum import to_np_type, complex128
>>> to_np_type(complex128)
numpy.complex128