The relevant original repository is shalm/quantum-Proof-of-Work, explicitly cited by Mikhail Y. Shalaginov (MIT) and Michael Dubrovsky (PoWx) in Quantum Proof of Work with Parametrized Quantum Circuits (2022). The supplied article is a later retelling, not a new 2026 hardware demonstration. The numerical results align with this paper. [Paper]
Access limitation: attempts to retrieve the original GitHub page, API listing and README failed in this research session. This does not prove the repository has been deleted or made private. Its file names, dependency pins, current branch and entry point remain unverified. Consequently, no original-repository execution command is invented below.
For an actionable alternative, this package includes an independent qPoW-style educational reconstruction using Qiskit Aer, whose public README was inspected. Aer supports ideal and noisy simulation and recommends pip installation. Its README currently notes reduced maintenance mode. The reconstruction is not a port, audited implementation or exact reproduction of the authors’ code.
2. What the historical experiment actually established
- The paper ran a four-qubit ansatz on the five-qubit IBM ibmq_quito processor and compared it with a Qiskit qasm simulator. It reports 69 matching maximum-output states in 100 trials; this is mode agreement, not state fidelity, per-shot correctness or cryptographic security.
- The four-qubit circuit averaged 40.4 transpiled CNOT gates. The tabulated simulator/QC runtime ratio is 0.0084, equivalent to QC taking approximately 119 times as long. “About 100 times slower” is a reasonable rounded summary, not a portable benchmark.
- A five-block toy chain was demonstrated at one leading hexadecimal zero. Five of seven candidate blocks passed simulator verification.
- Table 1 gives 2/3/4/5-qubit mode-agreement rates of 94/71/69/35%, with average CNOT counts of 3.7/17.5/40.4/90.7, respectively.
- The roughly 20-qubit runtime crossover and roughly 30-qubit effective-advantage threshold are projections using a specific simulator and hardware model, not demonstrated quantum advantage.
Source: original paper, Results, Table 1, Discussion and Figure 3. This guide makes no promise that the historical ibmq_quito backend remains available.
3. Technical corrections and mathematical audit
Encoding and the protocol boundary
Binary 0101 is decimal 5, not 9. Its angle under the stated mapping is 5π/8. Decimal 9 is binary 1001, mapping to 9π/8. This mistake appears in the original paper as well as in the supplied text. A SHA3-256 digest supplies 64 four-bit nibbles. Circuit topology, parameter placement, bit order, input serialization, tie handling and final hash composition must also be specified before implementations can agree.
A quantum shot returns a sample, not the most-probable state. Repeated shots estimate the mode. If the largest two probabilities differ by Δ, identifying the winner becomes harder as Δ shrinks; simple concentration bounds introduce inverse-square dependence on Δ along with confidence and output-space factors. Circuit depth alone therefore does not establish total mining complexity.
Noise is not an accuracy proof
The heuristic 0.99^40 ≈ 0.669 estimates an independent no-error survival factor. Including four independent 2% readout factors gives 0.99^40 × 0.98^4 ≈ 0.617. Neither number is a rigorous prediction of maximum-state agreement. Some errors preserve the modal outcome; near-degenerate modes and shot noise can change it. Correlated errors, coherent errors, relaxation and calibration drift also matter. Agreement of a rough estimate with 69/100 is not a validation of a complete error theory. An approximate 95% Wilson interval for that observed proportion is 59.4–77.2%.
Scaling claims need their units and assumptions
The Figure 3 caption gives the fitted classical curve as t = 10^(0.33n − 5), not simply 10^(0.33n), and the projected QC curve as t = 0.07(n² + 3n) + 7.5 in the plot’s time units. Dropping the offset changes the prefactor by 100,000. These are empirical/model curves, not universal complexity bounds. Faster simulators, different circuits, shot budgets, hardware compilation and end-to-end latency can move or eliminate the apparent crossover.
If R denotes attempts per second and a denotes acceptance probability, the effective advantage is A = a R_Q/R_C = a t_C/t_Q, assuming the same difficulty and comparable attempts. A circuit-depth model alone omits sampling cost, queueing, communication, reset and readout. “Native gates” means designing and compiling for a target device, not literally skipping all compilation.
Under independent acceptance probability a, expected attempts per accepted candidate are 1/a. At 10% this is 10, not thousands; 44 independent attempts give at least 99% chance of one acceptance. Thousands may arise from additional hash difficulty or much smaller acceptance probability, but not from 10% acceptance alone. A one-zero hexadecimal prefix has ideal probability 1/16 under a uniform-hash model; k zero hexadecimal digits give expected work 16^k.
Sources and scope: the historical counts, model curves and hardware-error assumptions come from the paper. The encoding correction, interval interpretation and probability calculations above are this report’s mathematical analysis.
4. Cryptographic and consensus assessment
This is a proposal for changing a PoW work function, not a method to recover Bitcoin private keys or break ECDSA. Bitcoin’s existing consensus will not accept these toy hashes. The paper places a quantum sampling task within a hash-based construction; that should not be read as a complete, independently established security proof for a production consensus protocol.
- Classical verification remains possible by simulation, but “possible” does not mean cheap at arbitrary n. Miners may evaluate many nonces while a verifier checks one winning candidate, yet every full node must still bear that verification cost.
- Classical simulation is an intended alternative mining route, not automatically an attack. The security question is whether specialized algorithms, parameter-dependent shortcuts or biased-input searches yield an unfairly cheap route to accepted work.
- A production specification needs canonical transaction/header serialization, domain separation, circuit generation, numeric precision, a deterministic mode/tie rule, validation limits, difficulty adjustment and fork behavior.
- A SHA3 outer hash does not by itself prove that the embedded quantum task is necessary or shortcut-resistant. Optimized classical baselines, adversarial nonce searches and verification-denial-of-service tests remain important.
- No electricity, revenue or profitability conclusion follows from these small experiments. Such analysis requires full-system energy and cost accounting, including refrigeration, service fees and verification overhead.
Basis: the proposed construction and its stated verification model; security limitations above are analytical cautions, not claims of a demonstrated exploit.
5. Installation: Linux, macOS and WSL
Commands below target a clean CPU-only Python environment. Linux instructions use Ubuntu/Debian. Python 3.12 is a practical conservative choice where available; package-wheel compatibility must be checked on the actual OS/architecture. No quantum account, wallet, private key or paid service is required. Do not mix a legacy Qiskit installation into this environment.
Linux / Ubuntu / Debian
sudo apt-get update
sudo apt-get install -y git python3 python3-venv python3-pip
mkdir -p ~/qpow-lab && cd ~/qpow-lab
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install qiskit qiskit-aer numpy
python -m pip check
macOS
# Requires Homebrew to be installed already.
brew install git python@3.12
mkdir -p ~/qpow-lab && cd ~/qpow-lab
"$(brew --prefix python@3.12)/bin/python3.12" -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install qiskit qiskit-aer numpy
python -m pip check
WSL
# Windows PowerShell, as Administrator:
wsl --install -d Ubuntu
# Restart Windows if requested, then open Ubuntu.
# Inside Ubuntu, run the Linux installation commands above.
# Keep the project under ~/qpow-lab, not /mnt/c, for this workflow.
On Linux distributions whose default Python has no compatible Aer wheel, create a separate supported Python 3.12 environment rather than forcing an unsupported source build. On macOS use a native interpreter for your CPU architecture. If pip reports “externally managed environment”, activate the virtual environment; do not use sudo pip or –break-system-packages.
Dependencies are intentionally not presented as a tested fixed lockfile: the code was not executed with Qiskit in this environment. Save pip freeze after a successful local run to record the actual resolved versions. For source builds, follow Aer’s own contribution instructions; cloning its C++ source is not necessary for this pip-based workflow. [Aer README]
6. Original GitHub repository: safe retrieval and inspection
# Archival source named in the paper; retrieval was NOT verified here.
git ls-remote https://github.com/shalm/quantum-Proof-of-Work.git
# Only if the preceding command succeeds:
git clone https://github.com/shalm/quantum-Proof-of-Work.git original-qpow
cd original-qpow
git rev-parse HEAD
find . -maxdepth 3 -type f \( -name '*.ipynb' -o -name '*requirements*' -o -name 'README*' -o -name 'pyproject.toml' \) -print
# Read the discovered documentation before installing or executing anything.
# Do not enter GitHub credentials merely because a public clone fails.
If retrieval fails, stop the archival workflow. Do not infer a script name or run a guessed requirements file. Inspect any recovered notebooks and shell commands before execution, record the commit and use an isolated environment. Historical notebooks may use legacy Qiskit provider APIs and require a carefully reconstructed environment or migration; this report cannot establish those dependencies without the source.
7. Independent runnable reconstruction
Save the supplied Python attachment as qpow_demo.py, or use the “Save Python runner” button at the top of this guide. This script uses Qiskit’s quantum circuits/statevectors and Aer’s CPU ideal/noisy simulators. It creates no network connection and performs no blockchain transaction.
Deliberate differences from the paper
- Canonical JSON replaces the paper’s informal concatenated string.
- All 64 SHA3-256 nibbles map to 64 rotation gates, cycling through per-qubit Rx, per-qubit Rz and ordered all-to-all controlled-Rx placements. This is an explicitly chosen educational ansatz, not a recovered author ansatz.
- The final digest is SHA3-256 of canonical JSON containing the header and selected bitstring. It is not claimed to reproduce HeavyHash or the paper’s full mixer.
- The audit compares sampled ideal and noisy modes with an exact statevector reference. Toy mining and local verification use the exact reference for determinism and speed; mining is not hardware mining.
- A 1% two-qubit depolarizing parameter is applied after each compiled CX and a 2% symmetric readout error is used. That depolarizing parameter is not identical to a reported hardware average gate infidelity. No coupling-map routing, relaxation, drift or correlated noise is modeled.
- Modes use Qiskit’s bitstring ordering (q[n−1]…q[0]). Exact probabilities are rounded to 12 decimals and tied winners choose the smallest integer. This is an educational numerical convention, not a portable consensus guarantee.
Execute on Linux, macOS or WSL
# Save the supplied qpow_demo.py in ~/qpow-lab first.
cd ~/qpow-lab
source .venv/bin/activate
python -c "from qiskit_aer import AerSimulator; print(AerSimulator())"
python qpow_demo.py --qubits 4 --trials 20 --shots 20000 --blocks 5 --difficulty 1 --out results
python -m pip freeze > results/requirements-lock.txt
# Optional: 100-trial audit (still not the original hardware experiment).
python qpow_demo.py --trials 100 --shots 20000 --out results-100
The CLI restricts the circuit to 2–8 qubits so this density-matrix audit stays small. Do not remove that bound to chase a claimed 30-qubit crossover: density matrices use O(4^n) storage, whereas statevectors use O(2^n). Ideal double-complex statevectors alone take about 16 MiB at 20 qubits, 512 MiB at 25 and 16 GiB at 30, before overhead. These are storage estimates, not speed guarantees.Complete runner source
8. Google Colab
Create a new Python notebook and run the following cells in order. Upload the supplied runner when prompted. This workflow installs into the Colab runtime rather than activating a shell virtual environment across cells. The optional archival clone is separate and is not needed for this reconstruction.
# Cell 1: choose a CPU runtime; no API key or GPU required.
%pip install -q qiskit qiskit-aer numpy
# If imports were loaded before an upgrade, restart the session, then continue.
# Cell 2: upload the supplied qpow_demo.py.
from google.colab import files
uploaded = files.upload()
assert "qpow_demo.py" in uploaded
# Cell 3:
!python qpow_demo.py --qubits 4 --trials 20 --shots 20000 --blocks 5 --difficulty 1 --out results
!python -m pip freeze > results/requirements-lock.txt
# Cell 4: package and save outputs before the temporary session ends.
import shutil
from google.colab import files
shutil.make_archive("qpow-results", "zip", "results")
files.download("qpow-results.zip")
9. Expected final outcome and validation
A successful default run prints a JSON summary with verified_blocks equal to 5 and writes the following local artifacts:
| Artifact | Meaning |
|---|---|
| results/chain.json | Five linked demonstration blocks, each with nonce, exact modal state and a 64-character SHA3-256 hash beginning with one hexadecimal zero. |
| results/audit.csv | Twenty independent header/circuit trials: exact mode, top-two probability gap, compiled CX count, depth, sampled modes, agreement indicators and measured simulation times. |
| results/summary.json | Settings, installed core-package versions, verified block count and empirical ideal/noisy mode-agreement rates. |
| results/requirements-lock.txt | Actual resolved environment, captured by the separate pip freeze command. |
No exact noisy agreement rate, gate count, runtime or nonce sequence is promised across package versions. Ideal finite-shot mode agreement need not be 100%, especially for near-ties. The noisy result is not expected to reproduce 69% because the topology, circuit and noise model differ from the historical experiment. Audit timing compares two classical simulation configurations, not a QPU against a CPU. The chain verifier recomputes each stored modal output and hash and checks linkage, heights and difficulty.
At difficulty one, the uniform-hash heuristic predicts about 16 candidates per block (about 80 for five), but this is an expectation, not a bound. An attempt-cap failure is possible; lower difficulty or raise –max-attempts. With zero difficulty every candidate passes the prefix test, useful for a smoke test.
What this does not produce
No Bitcoin, qBTC, private-key recovery, real mining revenue, quantum advantage, hardware-noise replication or production-ready consensus. It produces a transparent educational experiment and locally verified toy chain.
10. Reproducibility checklist and status
- Record OS, CPU, architecture, Python version and the generated environment lockfile.
- Run the default audit, then optionally increase trials to 100 and repeat across several seeds; inspect probability gaps as well as aggregate agreement.
- Keep transpiler settings and shot counts fixed for comparisons. Mode agreement should not be labeled circuit fidelity.
- For future real-hardware experiments, recover and inspect the source first, select an actually available backend, use its current provider documentation and capture calibration, topology, job IDs, shot counts and queue-versus-execution timings.
- Never publish quantum-cloud tokens or include them in notebooks or this HTML.
Verification status: web research checked the paper and Aer README. The supplied runner passed Python syntax parsing only during document creation; Qiskit/Aer were not installed or executed here. The guide is a reasoned installation/execution recipe, not a fabricated successful test report. Research date: 14 November 2026.
The promotional PQ Evidence link embedded in the supplied article describes a cryptographic inventory/migration service, not the qPoW code or experiment, and is not used as technical evidence for the mining claims.
