4 releases

0.2.0 Jul 15, 2023
0.1.2 Jul 15, 2023
0.1.1 Jul 14, 2023
0.1.0 Jul 13, 2023

#364 in Simulation

MIT license

12KB
240 lines

qn

Test Docs

A non-local system of qubits and a collection of thread-safe qubit transformations.

  • Emulate entangled physical systems in concurrent code: measurements in one thread have immediate effect on measurements of entangled qubits in other parts of the system.

  • Synchronization primitives and borrow checker assure thread-safety and uniqueness of qubits.

  • Tensor structure of the Hilbert space allows for straightforward parallelization: we use rayon's parallel iterators to squeeze maximum performance out of CPU (what about GPU?):

    • Simple benchmarking suggests measurement of a single qubit in a 20 qubit register is already faster than with quest_bind. What about raw QuEST?

TODO

  • Write gates/operators, expand test suite.
  • Write intro:
    • quantum info perspective
    • system programming perspective
  • Write example: A and B share a Bell state
  • Write documentation and tutorial in README.md

Dependencies

~2.8–4MB
~70K SLoC