- tapering_using_sectors.ipynb:
- qubit tapering 的详细步骤实现,
- 实现理论依据:https://arxiv.org/pdf/1701.08213.pdf,
- 同时参考pennylane的实现:https://pennylane.ai/qml/demos/tutorial_qubit_tapering/ ,使用optimal sector
- mytapering.py
- 对应tapering_using_sectors.ipynb中实现,导出的py模块,
- 使用:
-
- 导入:
from mytapering import *
(确保在mytapering.py同一目录下), - 构建哈密顿量:eg. 构建目标:1.0 XX + 1.5 XZ + 2.0 YZ,代码:
Hami = PauliWords(["XX", "XZ", "YZ"], [1.0, 1.5, 2.0])
- qubit tapering:
Hami_tapered = tapering(Hami, n_electrons)
- 相似的步骤拆分见tapering_using_sectors.ipynb
- 导入:
-
- mytapering_examples.ipynb:
- 对比使用pennylane和mytapering的qubit tapering效果
- 分别考虑五个分子例子:H2, LiH, H2O, BeH2, H6
-
Notifications
You must be signed in to change notification settings - Fork 0
usamisaori/qubit-tapering
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Implement qubit tapering based on Z2 symmetries, which is used in VQE algorithm💿
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published