rigetti / qcs-sdk-c

C SDK for Rigetti Quantum Cloud Services (QCS)

Home Page:https://rigetti.github.io/qcs-sdk-c/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

qcs-sdk-c

C bindings to the Rust QCS SDK to enable pyQuil-like features from C and C-compatible languages.

Setup

This library is implemented in Rust, so the first thing you need is rustup. The default, stable toolchain will work just fine.

Next, because this library relies on ØMQ, you'll need [cmake] installed:

  • macOS Homebrew : brew install cmake
  • Windows Chocolatey: choco install cmake
  • Debian: apt install cmake

Finally, this project uses cargo-make in order to orchestrate build tasks, so install that using cargo install cargo-make.

Development

  1. Run makers (no args, default flow) to build and run tests.
  2. makers lint does linting.
  3. makers release-flow will do a release build of the C-SDK and spit out a .dylib file in the current directory.
  4. makers detect-leaks will run the tests with clang arguments that will attempt to detect memory issues.

Documentation

This library is documented using mdBook. The hosted version can be found GitHub Pages. You can use makers book to build it or makers serve-book to run a local webserver which will watch for some changes.

About

C SDK for Rigetti Quantum Cloud Services (QCS)

https://rigetti.github.io/qcs-sdk-c/

License:Apache License 2.0


Languages

Language:Rust 50.9%Language:C 49.0%Language:JavaScript 0.1%