mindquantum.core.gates.Power
===============================

.. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.5.0/resource/_static/logo_source.svg
    :target: https://gitee.com/mindspore/mindquantum/blob/r0.10/docs/api_python/core/gates/mindquantum.core.gates.Power.rst
    :alt: 查看源文件


.. py:class:: mindquantum.core.gates.Power(gate, exponent=0.5)

    作用在非参数化门上的指数运算符。

    参数:
        - **gates** (:class:`~.core.gates.NoneParameterGate`) - 要作用指数运算符的基本门。
        - **exponent** (int, float) - 指数。默认值: ``0.5``。

    .. py:method:: get_cpp_obj()

        返回量子门的c++对象。