Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kukushechkin/very-rusty-noisy-qubit

A Rust wrapper for the world's most unreliable quantum computing API. This project demonstrates how to create Rust bindings for a C API, while potentially violating several laws of quantum mechanics.
https://github.com/kukushechkin/very-rusty-noisy-qubit

ffi-bindings quantum-computing rust-lang

Last synced: about 12 hours ago
JSON representation

A Rust wrapper for the world's most unreliable quantum computing API. This project demonstrates how to create Rust bindings for a C API, while potentially violating several laws of quantum mechanics.

Awesome Lists containing this project

README

        

# Very Rusty Noisy Qubit

A Rust wrapper for the world's most unreliable quantum computing API. This project demonstrates how to create Rust bindings for a C API, while potentially violating several laws of quantum mechanics.

## What is this?

This is a test project showing how to:
- Use `bindgen` to generate Rust bindings for C API that probably shouldn't exist, obtained who knows from where (submodules for example)
- Create a safe Rust wrapper around unsafe C FFI (because we need more layers of uncertainty)
- Implement tests that might pass (or not, who knows?)
- If tests pass, we can compile and run more tests that will fail (or not, who knows?)

## Building and testing

```bash
cargo build && cargo test
```