We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d4cd1d commit 7681a98Copy full SHA for 7681a98
tensorcircuit/templates/hamiltonians.py
@@ -58,7 +58,7 @@ def generate_heisenberg_hamiltonian(
58
59
hamiltonian_matrix = tc.quantum.PauliStringSum2COO(ls, weight=weights, numpy=True)
60
61
- return cast(coo_matrix ,hamiltonian_matrix)
+ return cast(coo_matrix, hamiltonian_matrix)
62
63
64
def generate_rydberg_hamiltonian(
@@ -136,4 +136,4 @@ def generate_rydberg_hamiltonian(
136
137
138
139
- return cast(coo_matrix,hamiltonian_matrix)
0 commit comments