未验证 提交 71a17d57 编写于 作者: Y yangguohao 提交者: GitHub

Update utils.py

上级 89f18037
......@@ -922,9 +922,6 @@ class Hamiltonian:
"""
coefs, pauli_words, sites = self.decompose_with_sites()
n_qubit = 1
for site in sites:
if type(site[0]) is int:
n_qubit = max(n_qubit, max(site) + 1)
for site in sites:
if type(site[0]) is int:
n_qubit = max(n_qubit, max(site) + 1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册