Introduction
FQkit is a small Python framework for building and simulating quantum circuits. The source stays short on purpose, so you can learn how a quantum computer works by reading it and changing it.
ℹ️
FQkit is free and open source. It depends only on Python and NumPy, and it can export circuits to OpenQASM so you can run them on real hardware. IBM is reached through Qiskit Runtime. IonQ, Rigetti, IQM, and AQT are reached through Amazon Braket. Those SDKs are optional extras.
Why FQkit?
Most quantum frameworks are large and abstract. FQkit is deliberately small. Qubits, gates, operations, circuits, simulation, and measurement each live in a short module you can read. You can hold the whole thing in your head.
Features
- Qubits and parameterized gates:
H,RX,RY,RZ - Multi-qubit gates:
CNOT,CZ,SWAP,Toffoli - Circuit construction:
QuantumCircuitwith validation - Parameter binding: symbolic parameters for variational circuits
- Statevector simulator:
runreturns the final quantum state - Measurement:
measure_allsamples bitstrings from the state - OpenQASM 2.0 export:
to_qasmbridges to Qiskit and real hardware - Hardware jobs:
submit(qc, "ibm")or"ionq","rigetti","iqm","aqt"
How these docs are organized
| Page | What you’ll learn |
|---|---|
| Installation | Getting FQkit onto your machine |
| Quick Start | Your first entangled circuit |
| Gates | The gate library and how gates work |
| Circuits | Building circuits with QuantumCircuit |
| Simulation & Measurement | Running circuits and reading results |
| Parameters & Binding | Variational circuits |
| OpenQASM & Hardware | Exporting a circuit to OpenQASM |
| Hardware | Accounts, runtime, job submission, and results |
| API Reference | Every public function and class |
| Applications | Chemistry, telecommunications, physics, cryptography, and where to go next |
Last updated on