Skip to content

Commit 7681a98

Browse files
committed
feat: fix black problem
1 parent 5d4cd1d commit 7681a98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tensorcircuit/templates/hamiltonians.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def generate_heisenberg_hamiltonian(
5858

5959
hamiltonian_matrix = tc.quantum.PauliStringSum2COO(ls, weight=weights, numpy=True)
6060

61-
return cast(coo_matrix ,hamiltonian_matrix)
61+
return cast(coo_matrix, hamiltonian_matrix)
6262

6363

6464
def generate_rydberg_hamiltonian(
@@ -136,4 +136,4 @@ def generate_rydberg_hamiltonian(
136136

137137
hamiltonian_matrix = tc.quantum.PauliStringSum2COO(ls, weight=weights, numpy=True)
138138

139-
return cast(coo_matrix,hamiltonian_matrix)
139+
return cast(coo_matrix, hamiltonian_matrix)

0 commit comments

Comments
 (0)