mindquantum.core.gates.QuantumGate ================================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindquantum/blob/master/docs/api_python/core/gates/mindquantum.core.gates.QuantumGate.rst :alt: 查看源文件 .. py:class:: mindquantum.core.gates.QuantumGate(name, n_qubits, obj_qubits=None, ctrl_qubits=None) 非参数化的门。 参数: - **name** (str) - 此门的名称。 - **n_qubits** (int) - 这个门有多少个量子比特。 - **obj_qubits** (int, list[int]) - 具体门作用在哪个量子比特上。 - **ctrl_qubits** (int, list[int]) - 指定控制量子比特。默认值: `None`。