DmcsObjective
The relative entropy and its gradient against numpy and a finite difference
3/3 passed in 625ms
| Test | What it does | Result |
|---|---|---|
test_gradient_matches | The analytic gradient agrees with a central finite difference of the explicit objective to 1e-3 relative along four random Hermitian directions. | ✅ pass |
test_matches_numpy | The reduced objective agrees with an explicit construction of the Kraus image to 1e-12. | ✅ pass |
test_objective_bracketed | The perturbed relative entropy stays between zero and | ✅ pass |