Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a scalar mode to diagonal parameterised Jones terms #358

Merged
merged 5 commits into from
Jan 16, 2025

Conversation

JSKenyon
Copy link
Collaborator

@JSKenyon JSKenyon commented Dec 19, 2024

As requested by @o-smirnov in #357. This is a slightly more general offering; diagonal parameterised Jones terms now support a support a scalar mode where appropriate. This is enabled by setting term.scalar=true where term is the name of any specified gain term.

At present, the scalar mode is not supported for diag_complex terms. This is because the solver is a little different for the diagonal complex case and the generic approach I have taken in this PR won't work.

Edit: I have added support for scalar diag_complex terms.

@JSKenyon JSKenyon changed the base branch from main to v0.2.6-dev December 19, 2024 13:04
@JSKenyon JSKenyon marked this pull request as draft December 19, 2024 13:17
@JSKenyon
Copy link
Collaborator Author

I have decided to convert this to a draft for now as I should probably add tests for the scalar modes to the test suite. The scalar mode is non-invasive i.e. nothing which was working will have been broken by these changes, but there are a number of edges cases I should probably check work as expected e.g. does the generic code function correctly when there are fewer than four correlations?

@JSKenyon JSKenyon mentioned this pull request Dec 19, 2024
@JSKenyon JSKenyon marked this pull request as ready for review January 16, 2025 13:55
@JSKenyon
Copy link
Collaborator Author

I have added a few tests but need to check how much they impact the testing time. The extra tests are not applied to all terms, but only to a representative subset. If they pass this can be merged.

@JSKenyon JSKenyon merged commit 7aabafc into v0.2.6-dev Jan 16, 2025
8 checks passed
@JSKenyon JSKenyon deleted the v0.2.6-scalar-jones branch January 16, 2025 15:05
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.

1 participant