Search

Lib.rs

› Science | Simulation
#qubit #quantum #non-local #quantum-simulation

qn

Non-local qubits

Owned by marek-miller.

  • Install
  • API reference
  • GitHub repo (marek-miller)

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

#591 in Science

MIT license

12KB
248 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

~3MB
~51K SLoC

  • num 0.4.1
  • rand 0.8.5
  • rand_chacha 0.3.1
  • rayon
  • dev criterion 0.5.1
See also: qubit, qoqo, struqture, qoqo_calculator, qrc-opensource-rs, quil-rs, qcs-api-client-openapi, qcs, frodo-kem, qp-rusty-crystals-dilithium, qnect

Lib.rs is an unofficial list of Rust/Cargo crates, created by kornelski. It contains data from multiple sources, including heuristics, and manually curated data. Content of this page is not necessarily endorsed by the authors of the crate. This site is not affiliated with nor endorsed by the Rust Project. If something is missing or incorrect, please file a bug.