$ cat projects/crispr-quantum.md

Quantum-classical neural networks for CRISPR

Classical against hybrid quantum-classical networks on a genomic regression — SSCAD 2024

research 2023 — published 23 Oct 2024 Author

at a glance

Venue
Symposium on High Performance Computing Systems (SSCAD 2024)
Published
23 October 2024
Language
Portuguese
Area
HPC · quantum computing · bioinformatics

context

Written with two co-authors at the Department of Computer Science of PUC Minas, Belo Horizonte, and published in the proceedings of SSCAD 2024, pages 13–24, by the Brazilian Computer Society (SBC).

the problem

The DepMap project publishes, for hundreds of cancer cell lines, how strongly each line depends on each gene in CRISPR knock-out experiments, and how many copies of each gene it carries. The paper asks whether a network with quantum layers can predict the first from the second, and whether hybrid quantum neural networks are viable for regression at all.

Its stated hypothesis is about performance: that quantum models can improve the analysis and prediction of gene-edit effects by exploring the data faster and more efficiently. That makes the classical baseline, and the run times, the numbers that matter.

approach

What was tried — and, where it applies, what it taught. The second half is the part that usually gets edited out, and the part that is actually useful.

    • Built three networks of almost the same size with TensorFlow, Keras and PennyLane: a classical one, one with a single quantum layer between classical layers (H-NNW), and one whose intermediate layers are all quantum (HQNNW). Each was trained for 20 epochs, with the quantum circuits simulated on classical hardware.

    learned Simulation dominates the cost. The classical network used 1.12 s of CPU time; the hybrid took 20 min 1 s and the fully quantum network 1 h 17 min 22 s.

    • Compared the three on the same measures, from loss and accuracy to R², CPU time and wall time.

    learned No network wins outright. The hybrids end with higher accuracy (0.9750 against 0.9352) and lower final MSE and MAE, while the classical network ends training with the lowest loss (0.0059) and the lowest epoch-20 MAE, MSE, MAPE, MSLE and log-cosh. All three R² values are negative, so none predicts better than a constant equal to the mean.

outcome

Publication
Proceedings paper
SSCAD 2024, pp. 13–24, SBC
Best R²
-0.0303
hybrid H-NNW; all three are negative
Cost of the hybrid
20 min 1 s
CPU time, against 1.12 s for the classical network

what I would do differently

State the result the way the table shows it. The paper concludes that the hybrids offer advantages in prediction and could beat classical models with the right optimisation. With every R² negative and the classical network holding the lowest training loss, the claim the data supports is a comparison under simulation, not an advantage.

Put the baseline that a negative R² is measured against, a constant prediction of the mean, into the table, and say in the abstract that no quantum hardware was used. Both would have made the result easier to read correctly.

next stage

A follow-up study is under way, in stages. The DepMap release the first paper used is identified, the state of the art is reviewed, and the three networks are reproduced: none of them beat a constant prediction of the training mean. The feature table of the first paper was recovered from its notebooks and rebuilt exactly, and on it the results table still does not reproduce. Its six target genes were drawn without a recorded seed: the second stage keeps them, and the stage after it will choose targets by a rule registered in advance. The design was registered before the first result and a pilot measured the cost of each run. The full benchmark has run in simulation, with and without the noise of a real device, and the trained circuits have run on real quantum hardware inside a free quota. A draft has passed a blind review. Two further stages then changed the encoding and the input data, and a fifth, whose protocol was anchored in a public blockchain before its targets were drawn, has its main grid sealed and its analysis blinded. The results will appear here once the paper is public. It asks the question the first paper left open — whether a hybrid network predicts gene dependency better than classical models of the same cost.

  • Reproduce the three networks with repeated seeds and report intervals, so a gap between models can be told apart from run-to-run variation.
  • Add the classical baselines the first paper lacked (the mean of the target, a linear model and a tree ensemble) and drop accuracy, which does not measure a regression.
  • Run the trained circuits on real quantum hardware as well as in simulation, inference only and inside a free quota, timing the queue, compilation and device time apart, to test the claim that hardware would close the time gap.
  • Publish in English whichever way the result falls, against the design registered before the first result.
The follow-up to the 2024 paper, stage by stage. A protocol date is the date its pre-registration was committed to the study's repository.
stagequestionprotocolstate
Paper A classical network and two hybrid quantum-classical ones predicting gene dependency from gene copy number none registered published 2024
Reproduction The paper's three networks on its own split, with ten seeds pinned assets and data release complete
Stage 2 Do the paper's hybrids predict dependency from copy number better than classical models of the same cost? With inference on real quantum hardware registered 26 Oct 2026 complete
Stage 3 Hybrids with a well-posed encoding, with external validation on a later release of the data registered 27 Oct 2026 complete
Stage 4 The stage 3 hybrids on gene expression instead of copy number registered 28 Oct 2026 complete
Stage 5 Hybrids on gene expression over drawn targets, with a classical ceiling, scaling curves, an RNAi task and a blinded analysis anchored in Bitcoin before the target draw running · blinded

Progress, task by task, is on the roadmap.

artifacts