1.2K Star 2K Fork 3.4K

GVPMindSpore / mindquantum

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mindquantum.utils.random_circuit.rst 550 Bytes
一键复制 编辑 原始数据 按行查看 历史
donghufeng 提交于 2023-11-01 01:16 . re-organize docs

mindquantum.utils.random_circuit

.. py:function:: mindquantum.utils.random_circuit(n_qubits, gate_num, sd_rate=0.5, ctrl_rate=0.2, seed=None)

    生成随机线路。

    参数:
        - **n_qubits** (int) - 随机线路的量子比特数。
        - **gate_num** (int) - 随机线路中门的数量。
        - **sd_rate** (float) - 单量子门和双量子门的比例。
        - **ctrl_rate** (float) - 门具有控制位的可能性。
        - **seed** (int) - 生成随机线路的随机种子。
Python
1
https://gitee.com/mindspore/mindquantum.git
git@gitee.com:mindspore/mindquantum.git
mindspore
mindquantum
mindquantum
master

搜索帮助