Bitcoin Quantum Mining: Critical Analysis and Reproducibility Guide

22.11.2026

The directly relevant repository is zachmanson/quantumraces. The publication record for Zach Manson and Barry C. Sanders, Strategies for quantum-enabled Bitcoin miners, links this repository. The arXiv record confirms v1 on 27 July 2026 and v2 on 14 August 2026, with 53 pages and 17 figures. This is a better match than an unrelated Grover tutorial because the research concerns mining races, measurement schedules and payoffs.

The repository landing page, raw README and GitHub API could not be retrieved during this review. An indexed README path exists, but that does not establish its contents. Consequently, no dependency manifest, upstream filename, CLI flag, Python version requirement, commit hash or simulation entry point is claimed as verified. Clone and inspection commands below are concrete; upstream installation examples are explicitly conditional. The independent audit is fully specified and runnable.

The supplied attachment contains the continuation through section 17, which was reviewed. It is the article, not the underlying 50-page PDF. The article page could not be fetched. Its allegations about individual PDF equations and tables therefore remain attributed claims rather than an independent inspection of that PDF.

What the article gets right

  • Search speed and consensus security are different claims. Grover amplification increases success probability for a specified oracle and run duration; a network conclusion additionally needs competing miners, timing, propagation, incentives and branch selection.
  • Nonce search is distinct from elliptic-curve secret-key recovery. Neither the supplied game nor this audit establishes ECDSA or Schnorr security against Shor-type attacks.
  • A fixed nonce search can contain no valid answer. Conditioning on a nonempty search space is not equivalent to unconditional mining success.
  • Finite simulation, an equilibrium on a reduced grid, and hardware feasibility are separate evidence levels.

Difficulty and solution-count audit

Using the article’s strict-threshold convention, T1 = 65535 × 2^208, d = T1/T and W = 2^256/T. Thus W = d × 2^48/65535. With the inclusive Bitcoin target condition, the exact expected work is 2^256/(T+1); numerical inputs here follow the article’s W convention rather than reconstructing an integer consensus target.

The historical number d = 119116256505723.5 converts to W ≈ 5.116082326 × 10^23. This arithmetic is independently reproduced. Whether the authors actually substituted conventional difficulty where work was required still needs source-code and source-data inspection.

For N independent random hash outputs and per-candidate success probability 1/W, M is Binomial(N,1/W). Conditional success is p(k,m) = sin²((2k+1)asin(sqrt(m/N))). Unconditional success averages over integer M. It can never exceed P(M ≥ 1). Substituting a fractional mean into the nonlinear formula is not generally valid.

With N = 2^32 and k = 51471, this guide evaluates the binomial sum for m = 1,…,20 using a recurrence, compares a Poisson approximation, and bounds the omitted probability by (N/W)^21/21!. This is a finite-precision numerical evaluation with an analytic truncation bound, not symbolic exact arithmetic. The bound does not cover floating-point roundoff. It is specialized to the two very sparse examples, not arbitrary W.

Important correction to the article’s payoff audit

The supplied text itself contains an algebraic error. It prints pA[(1−γ)+γb] = pA−(1−γ)pA b. These expressions are not equal in general. For example, b = 0 makes the first pA(1−γ), but the second pA.

Define γ explicitly as Alice’s probability of winning if Alice and the responder Bob both succeed. If Alice succeeds with probability a and Bob’s response succeeds with conditional probability b, the first-success branch is:

U_A = a[(1−b) + γb] = a − (1−γ)ab
U_B = (1−γ)ab
U_A + U_B = a

The article also omits b from its stated corresponding responder contribution. With a = 0.7, b = 0.4 and γ = 0.5, the correct branch contributions are 0.56 and 0.14. These are unconditional contributions for this branch, not complete game payoffs; remaining branches must be added separately. Conditional response probabilities must not be silently replaced by independent marginal probabilities.

Expected payoffs summing above one would contradict mutually exclusive probabilities for one reward, but can be valid for other utility definitions or multiple rewards. Dividing all numbers by a normalization constant does not by itself repair a missing event tree.

Statistics, resource accounting and wording

  • Zero exceedances in one million independent stationary trials gives a one-sided 95% upper event-probability bound of approximately 2.995727786 × 10^-6. This is neither zero risk nor a forecast of real Bitcoin attacks.
  • A daily stale ratio is not a reorganization probability. A detection test against one classical baseline cannot uniquely identify a quantum cause.
  • A fork event and a stale block are not interchangeable counts. Three competing blocks at one height can leave two stale blocks.
  • The relation q > (1−p)/(2−p) follows from the article’s simplified effective-work inequality, not a universal quantum attack theorem. At p = 1/3 it gives q > 0.4.
  • Fixing k/600 fixes a model iteration rate. It does not specify reversible double-SHA-256 gate depth, logical or physical qubits, correction overhead, measurement latency, ASIC-equivalent cost or watts.
  • In the pasted table, “Short”, “Low” and “Ideal” mix terminology. Values such as Pdet = 1,000,000 cannot be literal probabilities; inspect the source table before interpreting them as 1.000000. No detection conclusion in this guide relies on that transcription.

6. Linux setup (Debian/Ubuntu)

The following creates an isolated workspace and clones the publication-linked repository. Availability and dependencies still need checking locally.

sudo apt-get update
sudo apt-get install -y git python3 python3-venv python3-dev build-essential
mkdir -p ~/quantum-mining-lab
cd ~/quantum-mining-lab
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip setuptools wheel
git clone https://github.com/zachmanson/quantumraces.git
cd quantumraces
git rev-parse HEAD | tee ../repository-commit.txt
git status --short

7. macOS setup

# Requires Homebrew already installed.
brew install git python@3.11
mkdir -p ~/quantum-mining-lab
cd ~/quantum-mining-lab
python3.11 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip setuptools wheel
git clone https://github.com/zachmanson/quantumraces.git
cd quantumraces
git rev-parse HEAD | tee ../repository-commit.txt
# If a dependency needs compilation, install Apple Command Line Tools:
# xcode-select --install

8. Windows via WSL

Run the following in an Administrator PowerShell window. Reboot if Windows requests it, then launch Ubuntu and create your Linux user.

wsl --install -d Ubuntu
wsl --list --verbose

Inside the Ubuntu terminal, run the complete Linux block in section 6. Keep the workspace in ~/quantum-mining-lab. All remaining shell commands are Linux commands inside WSL, not PowerShell.

9. Inspect before installing or launching upstream code

# Run inside the cloned repository. These inspect files, not execute them.
git ls-files | head -80
find . -maxdepth 2 -type f \( -iname 'readme*' -o -name 'requirements*.txt' -o -name 'pyproject.toml' -o -name 'environment*.yml' -o -name '*.ipynb' \) -print
# Display tracked documentation if present:
for f in README.md README.rst README.txt pyproject.toml requirements.txt; do
  if [ -f "$f" ]; then printf '\n--- %s ---\n' "$f"; sed -n '1,220p' "$f"; fi
done

Read the README and manifests before executing package installation: package builds and scripts can run code. The source instructions must determine the correct install method. These are examples, not verified project commands:

# CONDITIONAL EXAMPLES ONLY: choose the method prescribed by the actual README.
# If requirements.txt is the documented dependency manifest:
python -m pip install -r requirements.txt
# Alternatively, if pyproject.toml defines an installable Python project:
python -m pip install -e .
# Do not run both automatically. Other manifests need their own tools.
python -m pip check
python -m pip freeze > ../environment-installed.txt
# There is NO verified upstream execution command in this report.
# Follow the actual README to select scripts/notebooks and parameters.

Do not assume python main.py, a nonexistent requirements.txt, or a notebook name. A verified Table V reproduction command cannot responsibly be supplied without inspecting the repository. Preserve the printed commit and installed environment with every result. A clone from the default branch is not a publication-pinned checkout; use git checkout with a verified commit only when that commit is known.

10. Google Colab repository workflow

Use a CPU runtime for the independent arithmetic audit; it does not use a GPU or QPU. Each block below is a separate code cell. Comments naming cells do not create notebook cells.

Cell 1: clone and inspect

import subprocess
from pathlib import Path
repo = Path('/content/quantumraces')
if not repo.exists():
    subprocess.run(['git','clone','https://github.com/zachmanson/quantumraces.git',str(repo)],check=True)
commit = subprocess.check_output(['git','-C',str(repo),'rev-parse','HEAD'],text=True)
print(commit)
Path('/content/repository-commit.txt').write_text(commit)
print(subprocess.check_output(['git','-C',str(repo),'ls-files'],text=True)[:14000])
for name in ['README.md','pyproject.toml','requirements.txt']:
    p=repo/name
    if p.exists():
        print('\n---',name,'---\n',p.read_text()[:20000])

Cell 2: conditional upstream dependencies

# Separate cell. Run ONLY if the README specifies requirements.txt.
%cd /content/quantumraces
%pip install -r requirements.txt
%pip check
# Restart the Colab session if installed packages require it.

If the project uses another dependency system, follow its actual instructions instead. Do not claim package compatibility until installation and a documented small example succeed. Colab sessions are temporary: export results before disconnecting.

11. Fully runnable independent execution

Use the attached companion Python script or save the complete code below as quantum_mining_audit.py. It requires only Python’s standard library and does not import or alter quantumraces. In Linux, macOS or WSL, run it from a writable directory in your active Python environment:

# Save the supplied companion script in the current working directory.
python quantum_mining_audit.py
# Examine results:
cat audit_results/summary.json

For Colab, upload and execute using these two separate cells:

# Separate cell: upload the companion Python script from this guide.
from google.colab import files
uploaded = files.upload()
assert 'quantum_mining_audit.py' in uploaded
# Separate cell: independent audit; no repository dependencies needed.
import subprocess, sys, shutil
subprocess.run([sys.executable,'quantum_mining_audit.py'],check=True)
shutil.make_archive('audit_results','zip','audit_results')
from google.colab import files
files.download('audit_results.zip')

Complete companion Python source





12. Actual numerical output from this review

This output was produced by executing the included audit script here, not by executing the upstream repository. The CSV and JSON are also attached. Small last-digit variations across platforms are possible.

{
  "N": 4294967296,
  "k": 51471,
  "conversion_factor": 4295032833.000015,
  "scenarios": [
    {
      "scenario": "article_numeric_D",
      "work": 119116256505723.5,
      "mean_solutions": 3.6056936492070064e-05,
      "existence": 3.60562864485485e-05,
      "binomial_average_truncated": 3.6056047970156617e-05,
      "poisson_average_truncated": 3.605604797015641e-05,
      "truncation_error_upper_bound": 9.736915758282293e-114,
      "mean_substitution": 8.896306263587482e-05,
      "plugin_over_existence": 2.4673384698899343
    },
    {
      "scenario": "converted_work_W",
      "work": 5.116082326361341e+23,
      "mean_solutions": 8.395031631663884e-15,
      "existence": 8.395031631663849e-15,
      "binomial_average_truncated": 8.395031630683863e-15,
      "poisson_average_truncated": 8.395031630683863e-15,
      "truncation_error_upper_bound": 4.9673546e-316,
      "mean_substitution": 2.0713625334752795e-14,
      "plugin_over_existence": 2.4673671575728737
    }
  ],
  "zero_of_million_upper_95": 2.995727786352544e-06,
  "response_branch": {
    "alice": 0.5599999999999999,
    "bob": 0.13999999999999999,
    "total": 0.7
  },
  "scope": "Independent diagnostic audit; not a replication of quantumraces"
}
PASS: fixed-space bound, mean-substitution counterexample, response payoff conservation

13. Expected final outcome

On successful independent execution, the script exits with status zero, prints PASS and writes audit_results/summary.json and audit_results/probabilities.csv. It demonstrates the approximately 2.467-fold violation of the fixed-space existence bound by mean substitution in these two examples; verifies that binomial averaging obeys the bound; records the difficulty conversion; computes the zero-event statistical limit; and checks conservation of the response-branch reward.

It does not mine a Bitcoin block, simulate a 32-qubit state vector, recover a private key, reproduce the publication’s equilibria or Table V, or determine a physical quantum-miner speed. Upstream execution, once its documented entry points are verified, should be assessed for game matrices, equilibrium outputs and network-simulation artifacts described in the publication—not assumed to generate spendable BTC. No wall-clock runtime or memory promise can be made for those uninspected programs.

14. What a full corrected replication must add

  1. Archive the specific PDF and repository revision, dependency versions, input data and numerical conventions.
  2. Write disjoint event outcomes, including responses, retries, failed searches and simultaneous measurements. Verify that single-reward probabilities sum to at most one.
  3. Specify whether retries reuse the same oracle/template. On a fixed oracle M is fixed; after repeated failures, the posterior distribution of M changes. Multiplying probabilities averaged independently over fresh M can be wrong. If a fresh template is generated, charge its construction/reset cost and justify independence.
  4. Keep physical iteration rate fixed across model comparisons and add preparation, measurement, verification, propagation and template-update costs.
  5. Rebuild payoffs and solve expanding strategy grids. Report regret against omitted actions and multiple equilibria, not only one solver result.
  6. Track a block DAG, accepted and stale blocks, reorganization depth and realistic classical control scenarios. Specify confidence intervals and dependence assumptions.

15. Troubleshooting and reproducibility checklist

  • Clone failure: check GitHub connectivity and repository availability; do not replace the repository with an unrelated mirror and call it the authors’ code.
  • Missing requirements.txt: stop and inspect the actual manifest. This guide does not claim that file exists.
  • Compiler error: retain the full build log. Linux build tools or Apple Command Line Tools may be needed for native dependencies, but project requirements must decide the fix.
  • Gambit import confusion: the game-theory package is installed as pygambit. Official documentation recommends a virtual environment; do not assume a package named gambit is equivalent.
  • Gambit API differences: record the actual installed version and use matching documentation. Installing the newest version is not evidence that historical repository code remains compatible.
  • Colab syntax errors: keep notebook magic commands in their own suitable cells; do not paste Python source immediately after a shell command and expect it to become a file.
  • Independent audit fails: run the provided script unchanged and keep the traceback. No third-party dependency or GitHub access is needed for that script.

16. Evidence and verification boundary

Primary material reviewed: the supplied complete article attachment. External metadata checked: the arXiv publication record and the publication index linking the repository. Installation context: official Gambit documentation. Not checked: the authors’ PDF equations directly, upstream file contents, four-platform installations, original simulations, hardware execution or current Bitcoin network statistics.

arXiv publication and version metadata · Publication record linking the code · Publication-linked repository · Official Gambit installation documentation