|
6 年之前 | |
---|---|---|
book | 6 年之前 | |
examples | 6 年之前 | |
src | 6 年之前 | |
tests | 6 年之前 | |
.editorconfig | 6 年之前 | |
.gitignore | 6 年之前 | |
Cargo.toml | 6 年之前 | |
LICENSE | 6 年之前 | |
NOTES.md | 6 年之前 | |
README.md | 6 年之前 |
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.
To use this library, you will need two things:
clinfo
or some other diagnostic command will run).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
}
This software is licensed under the MIT licence (see LICENSE
)
Copyright (c) 2018 Adam Kelly