Commit aa89735
committed
refactor(templates): Apply review suggestions to hamiltonians.py
This commit addresses code review feedback on the new hamiltonians module.
- Switched from absolute to relative imports for internal modules (`..cons`, `..quantum`) to improve modularity.
- Cleaned up and unified `typing` imports for better code style and consistency.1 parent 11f1162 commit aa89735
1 file changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | | - | |
| 3 | + | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
56 | | - | |
57 | | - | |
| 55 | + | |
| 56 | + | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| |||
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
105 | | - | |
106 | | - | |
| 104 | + | |
| 105 | + | |
107 | 106 | | |
108 | 107 | | |
109 | 108 | | |
| |||
0 commit comments