代码拉取完成,页面将自动刷新
.. py:class:: mindquantum.algorithm.nisq.HardwareEfficientAnsatz(n_qubits, single_rot_gate_seq, entangle_gate=X, entangle_mapping='linear', depth=1, prefix: str = '', suffix: str = '') HardwareEfficientAnsatz是一种可以很容易地在量子芯片上高效实现的ansatz。 HardwareEfficientAnsatz由一层单比特旋转门和一层双比特纠缠门构成。单比特旋转门层由一个或多个作用于每个量子比特的旋转门构造。 两个量子比特纠缠门层是由CNOT、CZ、Rxx、Ryy和Rzz等作用于纠缠映射构建的。了解更多详细信息,请访问 `Hardware-efficient variational quantum eigensolver for small molecules and quantum magnets <https://www.nature.com/articles/nature23879>`_。 参数: - **n_qubits** (int) - 此ansatz的比特数。 - **single_rot_gate_seq** (list[BasicGate]) - 作用于每个量子比特的参数化旋转门列表。 - **entangle_gate** (BasicGate) - 非参数化纠缠门。如果它是单个量子比特门,则将使用控制版本。默认值: ``XGate``。 - **entangle_mapping** (Union[str, list[tuple[int]]]) - 纠缠门的纠缠映射。 ``"linear"`` 表示纠缠门将作用于每个相邻的量子比特。 ``"all"`` 表示纠缠门将作用于任何两个两个量子比特。此外,可以通过将纠缠映射设置为两个量子比特元组的列表来指定要执行纠缠的两个量子比特。默认值: ``"linear"``。 - **depth** (int) - ansatz的深度。默认值: ``1``。 - **prefix** (str) - 参数的前缀。默认值: ``''``。 - **suffix** (str) - 参数的后缀。默认值: ``''``。
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。