未验证 提交 429f5283 编写于 作者: Y yangguohao 提交者: GitHub

Create test_construct_h_matrix.py

上级 8a3f9634
from paddle_quantum.utils import Hamiltonian
h = Hamiltonian([(1, 'Z0, Z1')])
print(h.construct_h_matrix())
print(h.construct_h_matrix(4))
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册