Quantum programming languages
sha2.fail only scores the emitted gate stream, so you can use any quantum language or framework. Below is a short comparison of the most common choices for building large reversible circuits such as SHA-256.
| Language | Host / runtime | Best for | Links |
|---|---|---|---|
| Qiskit | Python (IBM) | Wide ecosystem, simulators, hardware access, reversible-circuit prototyping. | qiskit.org, GitHub |
| Cirq | Python (Google) | NISQ algorithms, Google devices, device-aware circuits. | quantumai.google/cirq, GitHub |
| Q# | .NET / Azure Quantum (Microsoft) | High-level reversible algorithms, resource estimation, type-safe circuit generation. | Microsoft Learn, GitHub |
| Quipper | Embedded in Haskell | Large-scale circuit generation, higher-order circuit combinators, academic cryptanalysis. | quipper, GitHub mirror |
| ProjectQ | Python / C++ | Modular compiler framework, resource counters, fast C++ simulator. | projectq.ch, GitHub |
| OpenQASM | Textual IR (IBM-led) | Exchanging circuits between tools; the closest thing to an assembly language. | openqasm.com, GitHub |
| PennyLane | Python (Xanadu) | Quantum machine learning, variational algorithms; less common for pure reversible crypto. | pennylane.ai, GitHub |
Which one should I use for sha2.fail?
For now the benchmark accepts an op stream, not source code, so the choice is mostly about how quickly you can generate a correct, clean, reversible SHA-256 circuit. Most contributors use Qiskit or Q# because they have mature libraries for arithmetic, simulators for small test vectors, and large communities working on cryptographic oracles.