#bindings #quantum-simulator #libquantum

libquantum-patched

Rust bindings for the libquantum C library

1 unstable release

Uses old Rust 2015

0.1.3 Apr 4, 2018

#13 in #quantum-simulator


Used in qcgpu

GPL-3.0 license

18KB
200 lines

rust-libquantum-patched

Bindings for libquantum in Rust - a fork

rust-libquantum-forked is a library that provides safe bindings to the libquantum library (v. 1.1.1) C library, a quantum simulator.

Like libquantum and rust-libquantum, rust-libquantum-patched is licensed under GPL-3.0 as it links dynamically against libquantum and was forked from rust-libquantum.

Prerequisits

  • Rust (install here).
  • Libquantum (can be installed from [source] or through a package manager, for example sudo apt-get install libquantum-dev or brew install libquantum --devel)

Installation

[dependencies]
libquantum-patched = "0.2"

You can also pull from GitHub to use the latest version.

[dependencies.libquantum]
git = "https://github.com/mknyszek/rust-libquantum"

Finally, you can also just clone this repository and compile with cargo build

Troubleshooting

If for some reason the build script cannot find quantum.h on your system, try installing from source

Contributing

Just submit a pull request, any help in getting these bindings general and complete is welcome. Some rules, though:

  • Any new code must be well-documented, whether or not it appears in the public interface.
  • If you want to change an existing public interface, give me a good reason.
  • Please add tests for any new functionality you create.

Dependencies

~0–2.1MB
~44K SLoC