Contributing Circuits
Overview
Section titled “Overview”Publishing a circuit to QubitHub involves three files:
circuit.py— your quantum circuit codequbithub.toml— manifest describing the circuitREADME.md— documentation for users
Scaffold a new circuit
Section titled “Scaffold a new circuit”qubithub circuits init my-circuit --framework qiskitWrite your circuit
Section titled “Write your circuit”Your circuit.py must define a create_circuit() function that returns a framework-specific circuit object.
Push to QubitHub
Section titled “Push to QubitHub”qubithub circuits pushThe CLI validates your qubithub.toml and uploads all files.
Quality checklist
Section titled “Quality checklist”- Circuit executes without errors
- README explains the algorithm (intuition, math, implementation)
- TOML manifest has accurate metadata (qubits, gates, difficulty)
- Code follows framework best practices
Next steps
Section titled “Next steps”- qubithub.toml Reference — manifest format
- CLI Quickstart — full CLI workflow