未验证 提交 5a194b7c 编写于 作者: Y yangguohao 提交者: GitHub

Update utils.py

上级 ada7ea1c
......@@ -924,9 +924,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.
先完成此消息的编辑!
想要评论请 注册