CQCL / qujax

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

Density matrix: discards and qubit creation #41

Closed gamatos closed 1 year ago

gamatos commented 2 years ago

Adds qubit discarding and qubit creation operations. See the corresponding test test_creating_and_discarding to get an idea how this is supposed to work; qubits are created using a "create" operation and discarded using a discard operation and indices are tracked internally.