Skip to content

Commit

Permalink
Create test_construct_h_matrix.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yangguohao authored Oct 27, 2021
1 parent 8a3f963 commit 429f528
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test_documents/test_construct_h_matrix.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from paddle_quantum.utils import Hamiltonian

h = Hamiltonian([(1, 'Z0, Z1')])

print(h.construct_h_matrix())
print(h.construct_h_matrix(4))

0 comments on commit 429f528

Please sign in to comment.