Skip to content

Commit 4d5256d

Browse files
committed
Refactor: Optimize training loop and improve code style
* Standardize import order * Fix errors in code comments * Update docstrings to conform to reStructuredText (reST) style * Replace ansatz block gate sequence with a single SU(4) gate * Consolidate training functions for the three ansatzes * Fix inefficient structure where Hamiltonian (H) was rebuilt every iteration * H is now constructed only once per magnetic field strength
1 parent bdef5e1 commit 4d5256d

File tree

1 file changed

+251
-191
lines changed

1 file changed

+251
-191
lines changed

0 commit comments

Comments
 (0)