CQCL / qujax

Simulating quantum circuits with JAX
https://cqcl.github.io/qujax/
Apache License 2.0
58 stars 10 forks source link

Refactor apply gate #37

Closed SamDuffield closed 2 years ago

SamDuffield commented 2 years ago

Remove _get_apply_gate - I think it's much cleaner now

Users can now also manually do new_statetensor = apply_gate(old_statentensor, gate_unitary, qubit_inds) if they want