qutip / qutip-jax

JAX backend for QuTiP
BSD 3-Clause "New" or "Revised" License
15 stars 7 forks source link

Add permutation specialisations #11

Closed Ericgig closed 1 year ago

Ericgig commented 1 year ago

Add array and tensor permutation methods.

There is no compiling these, input accept both array, list and None. Pretty much the worth case for jit.

@quantshah This complete the dispatched functions for now. It's more complete than the Dense layer, there should only few operations that convert to other types and makes us lose the trace of jax arrays. They will mostly be operations that we have not updated to use v5's data layer yet. They are all ready to review and merge, but there will be conflict in __init__.py

coveralls commented 1 year ago

Pull Request Test Coverage Report for Build 3251602437


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/qutip_jax/permute.py 41 47 87.23%
<!-- Total: 42 48 87.5% -->
Totals Coverage Status
Change from base Build 3251591510: -1.0%
Covered Lines: 420
Relevant Lines: 440

💛 - Coveralls
quantshah commented 1 year ago

I think you can merge this @Ericgig. There are small cosmetic changes here and there but lets go ahead and fix them later when we build docs.