Skip to content

Remove :diffgauge differentiation mode#370

Merged
pbrehmer merged 2 commits intomasterfrom
pb-remove-diffgauge
May 1, 2026
Merged

Remove :diffgauge differentiation mode#370
pbrehmer merged 2 commits intomasterfrom
pb-remove-diffgauge

Conversation

@pbrehmer
Copy link
Copy Markdown
Collaborator

Remove all uses of the :diffgauge differentiation mode which differentiates the gauge-fixing routine and is generally slower and more difficult to work with. Closes #367.

As a follow-up, we should at some point thing about making the current gauge-fixing scheme compatible with real tensors or maybe switch the gauge-fixing scheme to just fix the decompositions. (That seems to work in other codes.)

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/Defaults.jl 85.71% <ø> (ø)
...rithms/optimization/fixed_point_differentiation.jl 91.80% <ø> (-1.06%) ⬇️
src/algorithms/optimization/peps_optimization.jl 98.66% <ø> (ø)

... and 11 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Member

@lkdvos lkdvos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

It's indeed even more obvious now that selecting iterscheme = ::Symbol is a bit strange, since there is only one option.
We could probably get rid of that thing entirely, but for sure in a follow-up PR.
Thanks for this quick and clean PR, makes it very easy to review :)

@pbrehmer pbrehmer merged commit fb31bd2 into master May 1, 2026
63 checks passed
@pbrehmer pbrehmer deleted the pb-remove-diffgauge branch May 1, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove :diffgauge mode for fixed-point differentiation

2 participants