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.