Skip to content

Commit 5738494

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1465a1a commit 5738494

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

physics/hamiltonian.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ def classical_hamiltonian(mass: float, momentum: Any, potential_energy: Any) ->
7777
return h
7878

7979

80-
def quantum_hamiltonian_1d(mass: float, hbar: float, potential_energy: Any, dx: float) -> np.ndarray:
80+
def quantum_hamiltonian_1d(
81+
mass: float, hbar: float, potential_energy: Any, dx: float
82+
) -> np.ndarray:
8183
"""
8284
Construct the 1D quantum Hamiltonian matrix using finite differences.
8385

0 commit comments

Comments
 (0)