-
Notifications
You must be signed in to change notification settings - Fork 3
Code quality tracking: refactoring, duplication, and technical debt #49
Copy link
Copy link
Open
Description
Tracking issue for code quality improvements identified during thesis repo review.
Critical
- Refactor master_ansatz.jl: eliminate 8-way duplication in QME_sI_ansatz_* functions #50 Refactor
master_ansatz.jl— 8 nearly identicalQME_sI_ansatz_*functions (~384 LOC duplication) - Refactor master_iterative.jl: consolidate duplicated solvers and remove _old versions #51 Refactor
master_iterative.jl— 4 duplicated solvers; remove_oldversions - Fix risky division in master_iterative.jl:340 — can silently produce Inf #52 Fix risky division in
master_iterative.jl:340(can silently produceInf)
High
- Replace typeof(rho) <: Operator type-checking anti-pattern with dispatch #53 Replace
typeof(rho) <: Operatortype-checking anti-pattern with dispatch (9+ places) - Replace bare parameter tuples with NamedTuple or struct #54 Replace bare parameter tuples with
NamedTupleorstruct(20+ places) - Replace magic symbol strings with @enum for vib_basis, picture, and mode flags #55 Add
@enumfor magic symbol strings (:interaction_picture,:ground_ground, etc.) - Fix potential nothing return in trace.jl:71-79 #56 Fix potential
nothingreturn intrace.jl:71-79
Medium
- Improve type annotations throughout — replace bare Array with concrete types #57 Improve type annotations throughout (
::Array→::AbstractMatrix{ComplexF64}) - Clean up technical debt: TODO comments, dead code, and commented-out tests #58 Clean up technical debt: 13 TODOs, dead code in
aggregateTools.jl, re-enabletest_memory_kernel.jl
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels