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

Stable Fock conversion #471

Merged
merged 56 commits into from
Aug 30, 2024
Merged

Stable Fock conversion #471

merged 56 commits into from
Aug 30, 2024

Conversation

ziofil
Copy link
Collaborator

@ziofil ziofil commented Aug 22, 2024

This PR introduces a few reworkings of some of our basic numba algorithms:

So far:
[x] 1.8x faster implementation of vanilla
[x] corresponding vanilla_vjp (only 1.2x faster)
[x] 40x faster (🚀!) version of vanilla_stable
[x] 10x faster version of vanilla_stable_batched

Also renames the setting from USE_VANILLA_AVERAGE to STABLE_FOCK_CONVERSION (much clearer)

@ziofil ziofil changed the title Flat average vanilla Stable Fock conversion Aug 24, 2024
@ziofil ziofil removed the WIP work in progress label Aug 27, 2024
Copy link
Contributor

@elib20 elib20 left a comment

Choose a reason for hiding this comment

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

Minor comments and questions!

mrmustard/math/backend_numpy.py Outdated Show resolved Hide resolved
mrmustard/math/lattice/strategies/vanilla.py Show resolved Hide resolved
mrmustard/math/lattice/strategies/vanilla.py Outdated Show resolved Hide resolved
mrmustard/math/lattice/strategies/vanilla.py Show resolved Hide resolved
mrmustard/math/lattice/strategies/vanilla.py Outdated Show resolved Hide resolved
mrmustard/math/lattice/strategies/vanilla.py Outdated Show resolved Hide resolved
tests/test_math/test_lattice.py Outdated Show resolved Hide resolved
@elib20 elib20 merged commit 4acf7bd into develop Aug 30, 2024
7 checks passed
@elib20 elib20 deleted the flat_average_vanilla branch August 30, 2024 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog Pull request does not require a CHANGELOG entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants