Derive local Hebbian learning rules for associative memory from quantum probability flow principles, validated on quantum annealers.
Scanned 9/11/2026
Install to Claude Code
npx -y skills add hiyenwong/ai_collection --skill quantum-attention-hebbian --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Quantum Attention Hebbian?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/hiyenwong-quantum-attention-hebbian)More formats (shields.io, HTML) on the badges page.
---
name: quantum-attention-hebbian
category: quantum-neuroscience
tags: [quantum-learning, hebbian, associative-memory, quantum-annealing, attention, d-wave]
version: 1.0
created: 2026-06-08
source: arXiv:2606.02098
activation: "quantum hebbian learning, quantum annealer associative memory, quantum probability flow learning, D-Wave attention learning"
---
# Quantum-Attention Hebbian Learning
Derive local Hebbian learning rules for associative memory from quantum probability flow principles, validated on quantum annealers.
## Trigger Conditions
- Design learning rules for associative memory networks
- Study quantum-inspired learning dynamics
- Implement attention mechanisms derived from physical principles
- Work with quantum annealers (D-Wave) for machine learning
- Bridge quantum mechanics and neuroscience learning models
## Background
This methodology derives from arXiv:2606.02098 (June 2026): "Attention-Like Hebbian Learning from Quantum Probability Flow and Quantum-Annealer Tests".
The paper establishes a principled connection between quantum probability flow and local learning rules in associative memory systems. A transverse field defines leakage channels from data states, and minimizing the measured survival loss yields stability-driven updates.
## Methodology
### 1. Quantum Probability Flow Framework
For an associative memory system with states |ψ⟩, the transverse field Γ defines leakage channels:
```
H = H_data + Γ·H_transverse
```
where H_data encodes the memory patterns and H_transverse enables quantum tunneling between states.
### 2. Imaginary-Time Dynamics → Softmax Hebbian Rule
For imaginary-time, dephased dynamics:
```
Δw_ij ∝ softmax(E_i - E_j) · (x_i · x_j)
```
The local leakage free energy is the log-sum-exp of energy gaps:
```
F_leak = log(Σ_k exp(-ΔE_k))
```
Its gradient yields a **softmax-weighted Hebbian rule** — similar to attention mechanisms.
### 3. Real-Time Dynamics → Power-Law Weighting
For real-time stability dynamics:
```
Δw_ij ∝ (E_i - E_j)^(-α) · (x_i · x_j)
```
This yields a **power-law weighted Hebbian rule** with long-range interactions.
### 4. D-Wanne Annealer Validation
The methodology was validated on D-Wave quantum annealers:
- Standard anneal and fast-anneal modes tested
- One-hot attention forward map evaluated
- **Key finding**: effective softmax better fitted than Lorentzian power law
- This confirms imaginary-time dynamics as the more accurate model
## Implementation Steps
1. **Define the energy landscape**: Encode memory patterns as low-energy states
2. **Apply transverse field**: Introduce quantum fluctuations via Γ
3. **Measure survival probability**: Track probability of remaining in target state
4. **Compute leakage free energy**: F_leak = log(Σ exp(-ΔE_k))
5. **Derive gradient**: ∂F_leak/∂w → softmax-weighted updates
6. **Apply Hebbian update**: Δw = softmax(ΔE) · x·x^T
7. **Validate on quantum hardware**: Test on D-Wave or simulated annealer
## Key Insights
- **Softmax emerges naturally** from quantum imaginary-time dynamics — no ad-hoc design needed
- **Attention and Hebbian learning are unified** under quantum probability flow
- **Imaginary-time > Real-time** for practical learning (empirically validated on D-Wave)
- **Physical grounding**: learning rates derived from physical parameters, not hyperparameters
- **Local updates**: each synapse updates based on local quantum leakage, no global backprop
## Applications
- Quantum-inspired neural network training
- Associative memory systems with quantum advantages
- Energy-based learning models
- Attention mechanisms with physical interpretability
- Neuromorphic computing with quantum annealing hardware
## Pitfalls
- **Annealing schedule matters**: D-Wave fast-anneal vs standard-anneal give different fits
- **One-hot encoding required**: forward map assumes one-hot representation for clean quantum dynamics
- **Temperature sensitivity**: imaginary-time dynamics assumes low effective temperature
- **Finite coherence**: real quantum hardware has decoherence limits the imaginary-time regime
## Related Skills
- `quantum-neural-architecture` - QNN design patterns
- `hebbian-learning-benchmark-memory` - Classical Hebbian benchmarking
- `quantum-reservoir-computing` - Quantum reservoir approaches
- `quantum-boltzmann-machine-bilevel` - Quantum Boltzmann learning
## References
- arXiv:2606.02098 - "Attention-Like Hebbian Learning from Quantum Probability Flow and Quantum-Annealer Tests" (June 2026)
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!