Skip to main content

Crate ket

Crate ket 

Source
Expand description

Libket: a quantum circuit compiler library.

Libket translates high-level quantum gate sequences into hardware-native instruction streams. It provides:

  • A rich intermediate representation (ir) with algebraic gate optimisations and multi-controlled gate decomposition.
  • Pluggable execution backends (execution) for both live (mid-circuit feedback) and batch (deferred compilation) execution modes.
  • A process abstraction (process) that drives the full compilation and execution pipeline.
  • A structured, FFI-friendly error type (error::KetError).

Modules§

c_api
Foreign Function Interface (FFI) for the Libket library.
error
Error types for the Libket quantum computing library.
execution
Execution backend abstractions for the Libket quantum computing library.
ir
Intermediate representation (IR) modules for the Libket quantum compiler.
process
Quantum process: the top-level unit of compilation and execution.

Functions§

compute_action_uncompute_gate
Return a block with the compute-action-uncompute.
controlled_gate
Return a block with a controlled gate.
swap_gate
Return a block with a SWAP gate.