Rusq
Quantum computing simulator in Rust
Overview
Rusq is a library to simulate a gate-type quantum computer written purely in Rust.
The Rusq design is highly inspired by Q#. Basically, only "physically safe" operation is implemented - no non-physical information like the amplitude of a wavefunction can be obtained by default.
Feature
- Measurement and projection
- Basic quantum gates
- $X, Y, Z$, Hadamard, identity, CNOT, CCNOT
How to use
First, add the following to Cargo.toml
[]
= { = "*", = "https://github.com/hajifkd/rusq.git" }
For example codes, check out the following section.
Examples
For instance, you can make EPR pair like this:
extern crate rusq;
use *;
For other kinds of examples, check tests directory. Pull requests to implement another examples of quantum computation is welcome.
License
MIT