216 releases (24 breaking)

new 0.25.5-rc.0 Nov 21, 2024
0.25.2 Oct 16, 2024
0.23.1 Jul 26, 2024
0.21.3 Mar 8, 2024
0.0.2 Oct 19, 2021

#411 in Development tools

Download history 892/week @ 2024-08-01 1030/week @ 2024-08-08 765/week @ 2024-08-15 754/week @ 2024-08-22 750/week @ 2024-08-29 739/week @ 2024-09-05 1616/week @ 2024-09-12 607/week @ 2024-09-19 879/week @ 2024-09-26 1578/week @ 2024-10-03 1949/week @ 2024-10-10 1243/week @ 2024-10-17 1146/week @ 2024-10-24 1742/week @ 2024-10-31 1320/week @ 2024-11-07 1085/week @ 2024-11-14

5,467 downloads per month

Apache-2.0

260KB
5K SLoC

qcs-sdk-rust

The qcs crate is a high-level interface to Rigetti's Quantum Cloud Services, allowing Rust developers to run Quil programs on Rigetti's QPUs. This crate is a Rust port of pyQuil, though it currently has a much smaller feature set.

For the C-bindings to this library, check out qcs-sdk-c

Documentation

This crate is documented primarily via rustdoc comments and examples, which are available on docs.rs.

Development

Most development tasks are automated with cargo-make (like make, but you can have dependencies on other Rust tools and a ton of useful tasks are built in). Install cargo-make by doing cargo install cargo-make. Then you can invoke it with either cargo make <task> or makers <task>. Tasks are defined in files called Makefile.toml.

In order to run all checks exactly the same way that CI does, use makers ci-flow from the project root (workspace).

Dependencies

Because this library relies on [ØMQ], cmake is required:

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

Running Tests

The best way to go about this is via makers or cargo make with no task. This will default to dev-test-flow which formats all code, builds, and tests everything.

Any tests which cannot be run in CI should be run with makers manual. These tests require configured QCS credentials with access to internal functions, as well as a connection to the Rigetti VPN.

Linting

makers lint will lint run all static checks.

Documentation

To build the docs.rs-style docs, run makers docs. You can also do makers serve-docs to launch a local webserver for viewing immediately.

Release

To release this crate, manually run the release workflow in GitHub Actions.

Dependencies

~39–55MB
~1M SLoC