Inspiration
Drug discovery is a brutally large search problem. I wondered what if a system could “think” while it optimizes using quantum rigor for physics and a brain-like evaluator for taste. Quantum computing was such a great application, able to replicate responses of the brain and its response to different chemicals
What I built
1) A quantum-classical loop for molecular design:
- Quantum GAN (PennyLane) that proposes molecular fingerprints. This can be used to find the optimal chemical balances
- VQE (Qiskit) estimates binding energies and convergence in real time. It's important to assess the effects that these drugs can have on the brain.
- A brain-inspired evaluator (adaptive, noise-aware neural system) scores candidates with evolving preferences. It is a major portion of the project, allowing us to consider what responses we would have in real life. 2) A live analytics UI:
- Node/WebSocket backend streams typed events (rewards, binding, synapses, molecules).
- React dashboard renders charts, heatmaps, and 3D structures (3Dmol.js).
How it works (core idea)
Instead of optimizing a single static metric, QBrainX co-evolves the generator, quantum binding energy, and brain-like reward:
Instead of optimizing a single static metric, QBrainX co-evolves three components: the GAN generator, quantum-estimated binding energy, and an adaptive brain-like reward.
E_bind: Binding energy estimated via Variational Quantum Eigensolver (VQE).
R_brain: Adaptive reward from the quantum brain evaluator.
λ terms: Coefficients that control how much each component influences the total objective.
What I learned
- Stable shapes (rewards, binding, synapses) made the frontend and backend click.
- Hybrid orchestration patterns: spawn Python from Node, log to stderr, print JSON to stdout, stream deltas via WebSockets.
- Quantum + ML integration: treating VQE as a differentiable penalty and the brain evaluator as a moving objective is powerful for steering generation.
- Pragmatic visualization: 3Dmol.js with SMILES gives immediate structural insight; small UX details (e.g., background colors, fallbacks) matter. UX took much longer than anticipated and initially I didn't consider it to be that difficult to create relative to the other algorithms which is where I was mistaken.
How I built it
- Python: PennyLane (quantum generator), Qiskit (VQE), PyTorch (brain evaluator).
- Node: Express + ws to launch Python and stream results.
- React: Recharts for time series, custom heatmaps for synapses, 3Dmol.js for structures.
Challenges I faced
- Dependency friction (e.g., heavy chem stacks like RDKit): I scoped to essentials and used SMILES + 3Dmol.js.
- Cross-runtime reliability: making Python print only JSON on stdout, routing logs to stderr, and handling Windows Python launchers (
pythonvspy). - Real-time UX: keeping charts smooth while running quantum simulations to which I added fallbacks and small payloads.
- Multi-objective stability: tuning (\lambda_{\text{VQE}}) and (\lambda_{\text{brain}}) to avoid mode collapse or trivial minima.
Why it’s novel
Most pipelines optimize a fixed score. QBrainx co-evolves a generator with quantum energy and an adaptive, brain-like preference signal, turning search from “lowest number wins” into “physics-aligned, goal-aware discovery.” Essentially, QBrainX is novel because it uses quantum computing’s ability to simulate real brain processes like neuron entanglement and synaptic dynamics, which classical computers can’t replicate. With advanced quantum AI to discover new drugs, creating a platform that “thinks” and adapts like a brain in real time (rather than long, tedious experiments with real subjects at risk) is extremely incredible. It enables breakthroughs in neuroscience and pharmaceutical research by directly modeling nature’s quantum complexity. Classical computing, no matter how powerful, can only test molecules and simulate brain processes sequentially, hitting hard limits in complexity and scale. QBrainX uses quantum mechanics to explore vast molecular and neural possibilities in parallel, revealing solutions and patterns that were computationally unreachable before. QBrainX uses quantum superposition to evaluate millions of drug molecules simultaneously, quantum entanglement to model complex brain functions, and hybrid quantum-classical learning to refine results in real time.
Built With
- express.js
- javascript
- jupyter
- multer
- node.js
- pennylane
- python
- qiskit
- quantum
- react
- websocket
Log in or sign up for Devpost to join the conversation.