mindchemistry.e3.o3.su2_generators ========================================= .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindscience/blob/master/docs/api_python/mindchemistry/e3/o3/mindchemistry.e3.o3.su2_generators.rst :alt: 查看源文件 .. py:function:: mindchemistry.e3.o3.su2_generators(j, dtype=complex64) 计算su(2)李代数生成元。 参数: - **j** (int) - 生成维度。 - **dtype** (dtype) - {complex64,complex128}生成器的数据类型。默认值: ``complex64``。 返回: - **output** (Tensor) - 张量,计算su(2)李代数生成元结果,类型为dtype。 异常: - **TypeError** - 如果 `j` 不是整型。