Skip to content

Optimizations - fewer matrix multiplications, einsum, and optional noise#66

Open
jonaslb wants to merge 3 commits intotfrederiksen:masterfrom
jonaslb:einsum_opt_new
Open

Optimizations - fewer matrix multiplications, einsum, and optional noise#66
jonaslb wants to merge 3 commits intotfrederiksen:masterfrom
jonaslb:einsum_opt_new

Conversation

@jonaslb
Copy link
Collaborator

@jonaslb jonaslb commented May 31, 2021

This PR reduces the number of matrix multiplications quite significantly. It also introduces use of np.einsum instead of the custom function (it's still custom, but it uses einsum). Noise calculation was made optional.

By a quick count I think the top part of calcTraces that is always executed goes from 19 to 14 matrix multiplications.

It cannot be merged after #64 cleanly so depending on which is merged first, the other will need a rebase.

@tfrederiksen
Copy link
Owner

Thanks a lot @jonaslb!

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.

2 participants