Няма описание

Adam Kelly 2a906caa44 Optimize apply_controlled_gate function преди 6 години
examples a68c9bb63f Spelling преди 6 години
src 2a906caa44 Optimize apply_controlled_gate function преди 6 години
.editorconfig e3242ca481 Add Editor Configuration преди 6 години
.gitignore ba23073a79 Basic Structure преди 6 години
Cargo.toml ae12dcf551 Error Handling преди 6 години
NOTES.md 785c893398 Moved simulator notes to NOTES.md преди 6 години
README.md 1147308084 Changed to version in files преди 6 години

README.md

QCGPU

Open Source, High Performance & Hardware Accelerated - Quantum Computer Simulation Library

The goal of QCGPU is to provide a library for the simulation of quantum computers that is fast, efficient and portable.

QCGPU is written in Rust and uses OpenCL to run code on the CPU, GPU or any other OpenCL supported devices. This library is meant to be used both independently and alongside established tools for example compilers or more general and high level frameworks. If you are interested in using QCGPU with IBM's QISKit framework or QISKit ACQUA, please see the repository qiskit-addon-qcgpu.

Prerequisites

To use this library, you will need two things:

  • OpenCL (Ensure that an OpenCL library is installed for your platform and that clinfo or some other diagnostic command will run).
  • Rust (install here). Please use a nightly build.

Usage

First, add the crate to cargo.toml

[dependencies]
qcgpu = 1.0.0 

Then use the crate!

extern crate qcgpu;
use qcgpu::State;

fn main() {
    let mut state = State::new(2, 0).unwrap();
    state.x(0);

    println!("Measured: {}", state.measure().unwrap());
    // 1
}

License

This software is licensed under the MIT licence (see LICENSE.md)

Copyright (c) 2018 Adam Kelly