Crate ket

source ·
Expand description

§Libket Quantum Programming Library

The Libket library provides a set of tools for quantum programming in Rust. It serves as the runtime library for the Python-embedded quantum programming language Ket.

Note: For more information about the Ket programming language, please visit


To use this library, add the following line to your Cargo.toml file:

libket = "0.4.0"

Additionally, you may need to include the following dependencies for quantum code serialization/deserialization and the KBW quantum computer simulator:

serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
kbw = "0.2.0"



  • C API Wrapper
  • This module defines the error types used in the quantum programming library.
  • This module provides traits and structures for configuring quantum execution.
  • This module contains the IR (Intermediate Representation) of the quantum circuit.
  • This module provides structures that hold the status of qubits and measurements.
  • This module contains the Process struct, which encapsulates the necessary information for handling qubit allocations and creating quantum circuits.