Crate qcgpu [] [src]

An Open Source, High Performance & Hardware Accelerated, Quantum Computer Simulator in Rust

This crate is a library with the aim to provide fast and effecient simulation of algorithms for quantum computers, while also being easy to use and abstracting away the management of the OpenCL Devices

The best place to start with this library is with the user guide, along with the docs (you're looking at them) and the source code

Features

  • Simulation of arbitrary quantum algorithms
  • Optional simulation of decoherence
  • Optimized for maximally entangled states
  • Accelerated with GPUs, FPGAs and other OpenCL devices
  • Example implementations of Grover, Deutsch-Jozsa, Bernstein-Vazirani and Shors algorithm
  • Implements Hadamard, Pauli and phase gates, with support for arbitrary gates
  • Support for arbitrary controlled gates

Re-exports

pub use gates::Gate;

Modules

gates

Gates and Gate Generation

Structs

State

Representation of a quantum register

Functions

gcd

Calculate the greatest common divisor (Euclid's algorithm)

get_width

Get the number of qubits needed to represent a number.