Free SKILL.md scraped from GitHub. Clone the repo or copy the file directly into your Claude Code skills directory.
npx versuz@latest install hiyenwong-ai-collection-collection-skills-dynamic-synaptic-lmg-qubitsgit clone https://github.com/hiyenwong/ai_collection.gitcp ai_collection/SKILL.MD ~/.claude/skills/hiyenwong-ai-collection-collection-skills-dynamic-synaptic-lmg-qubits/SKILL.md---
name: dynamic-synaptic-lmg-qubits
description: Bio-inspired quantum neural network encoding neuronal populations as fully connected qubits governed by the Lipkin-Meshkov-Glick (LMG) quantum Hamiltonian with activity-dependent homeostatic synaptic feedback. Links collective quantum many-body modes and attractor structure to population homeostasis and rhythmogenesis. Use when: bio-inspired quantum neural networks, LMG qubit populations, synaptic-efficacy feedback, quantum homeostatic control, collective spin quantum brain models, population rhythmogenesis, quantum attractor networks.
---
# Dynamic Synaptic Modulation of LMG Qubits in Bio-Inspired Quantum Brain
## Description
A biologically inspired quantum neural network that encodes neuronal populations
as fully connected qubits governed by the Lipkin-Meshkov-Glick (LMG) quantum
Hamiltonian, stabilized by a synaptic-efficacy feedback implementing
activity-dependent homeostatic control. Links collective quantum many-body modes
and attractor structure to population homeostasis and rhythmogenesis.
**Source**: arXiv:2602.16003 — "Dynamic Synaptic Modulation of LMG Qubits populations
in a Bio-Inspired Quantum Brain" (2026-02-17)
## Activation Keywords
- LMG qubits
- quantum LMG brain
- synaptic-efficacy feedback qubits
- activity-dependent homeostatic quantum
- collective spin quantum network
- quantum attractor rhythmogenesis
- LMG Hamiltonian neural
- bio-inspired quantum neural network
- quantum population homeostasis
- quantum brain rhythmogenesis
- LMG quantum neural network
- 量子LMG脑模型
- 突触效能反馈量子
## Core Architecture
### 1. LMG Hamiltonian with Synaptic Feedback
```
H = - (λ/N) Σᵢⱼ σᵢᶻ σⱼᶻ - h Σᵢ σᵢˣ + f(s) · Mᶻ
```
Where:
- **N**: Number of qubits (neuronal population size)
- **λ**: All-to-all coupling strength
- **h**: Transverse field (external drive)
- **Mᶻ**: Collective magnetization operator
- **f(s)**: Activity-dependent synaptic feedback function
- **s**: Synaptic efficacy variable with homeostatic dynamics
### 2. Synaptic-Efficacy Feedback Mechanism
The key innovation: **homeostatic control via dynamic synaptic modulation**
- Synaptic efficacy `s` adapts based on population activity
- Provides **negative feedback** stabilizing collective dynamics
- Implements **activity-dependent homeostasis** — prevents runaway excitation
- Creates **stable set points** for population activity
### 3. Computational Primitives
The framework enables three fundamental computational operations:
| Primitive | Mechanism | Application |
|-----------|-----------|-------------|
| **Stable Set Points** | Homeostatic feedback stabilizes magnetization | Memory storage, attractor states |
| **Controllable Oscillations** | Feedback-induced limit cycles | Rhythmogenesis, temporal coding |
| **Size-Dependent Robustness** | Collective mode stability scales with N | Scalable quantum computation |
### 4. Phase Structure
- **Paramagnetic Phase**: Disordered spins, high entropy
- **Ferromagnetic Phase**: Ordered collective state, low entropy
- **Feedback-Expanded Paramagnetic**: Homeostasis shifts phase boundaries
- **Critical Regime**: Phase transition boundaries for switching dynamics
## Implementation Workflow
### Step 1: Define LMG Hamiltonian
```python
# LMG Hamiltonian with synaptic feedback
import numpy as np
from qiskit.quantum_info import SparsePauliOp
def lmg_hamiltonian(n_qubits, coupling, field, synaptic_strength, synaptic_efficacy):
"""Construct LMG Hamiltonian with dynamic synaptic modulation."""
# All-to-all ZZ coupling
H_coupling = -(coupling / n_qubits) * sum_ZZ(n_qubits)
# Transverse field
H_field = -field * sum_X(n_qubits)
# Synaptic feedback term
H_feedback = synaptic_strength * synaptic_efficacy * collective_Mz(n_qubits)
return H_coupling + H_field + H_feedback
```
### Step 2: Implement Synaptic Feedback Dynamics
```python
def synaptic_efficacy_update(s_current, population_activity, target_activity, learning_rate, decay):
"""Activity-dependent homeostatic update of synaptic efficacy."""
error = population_activity - target_activity
ds = -learning_rate * error - decay * s_current
return s_current + ds
```
### Step 3: Simulate Dynamics
```python
def simulate_lmg_quantum_brain(initial_state, params, time_steps, dt):
"""Time-evolve LMG quantum brain with dynamic synaptic feedback."""
state = initial_state
synapse = params.synaptic_init
for t in range(time_steps):
# Compute current Hamiltonian
H = lmg_hamiltonian(
n_qubits=params.n_qubits,
coupling=params.coupling,
field=params.field,
synaptic_strength=params.synaptic_strength,
synaptic_efficacy=synapse
)
# Evolve quantum state
state = evolve(state, H, dt)
# Measure population activity
activity = measure_collective_magnetization(state)
# Update synaptic efficacy
synapse = synaptic_efficacy_update(synapse, activity, params.target_activity,
params.learning_rate, params.decay)
return state, synapse
```
### Step 4: Phase Diagram Analysis
```python
def analyze_phase_diagram(coupling_range, field_range, synaptic_params):
"""Map phase diagram of LMG quantum brain with synaptic feedback."""
phases = {}
for g in coupling_range:
for h in field_range:
state = find_ground_state(g, h, synaptic_params)
magnetization = compute_magnetization(state)
phases[(g, h)] = classify_phase(magnetization, state)
return phases
```
## Key Insights from the Paper
1. **Feedback Expands Paramagnetic Phase**: Synaptic feedback substantially expands the
paramagnetic region at the expense of ferromagnetic phases compared to feedback-free LMG.
2. **Longitudinal Field Coupling**: When synaptic feedback couples to longitudinal
magnetization, the effect on phase boundaries is markedly enhanced.
3. **Critical Boundary Displacement**: Homeostatic control displaces critical boundaries,
enabling tunable access to different quantum phases.
4. **Scalability**: Collective mode stability increases with population size N,
providing size-dependent robustness for larger quantum neural architectures.
## Tools Used
- **exec**: Simulate quantum many-body dynamics
- **read**: Load paper references and theoretical models
- **write**: Save simulation configurations and phase diagrams
## Usage Patterns
### Pattern 1: Quantum Memory via Stable Set Points
```
Design quantum memory using LMG attractors:
1. Initialize qubit population with memory pattern
2. Apply homeostatic feedback to stabilize magnetization
3. Memory stored as stable collective spin orientation
4. Readout via collective measurement
5. Retrieval robust to individual qubit perturbations
```
### Pattern 2: Quantum Rhythmogenesis
```
Generate oscillatory dynamics for temporal coding:
1. Set parameters near phase boundary
2. Homeostatic feedback creates limit cycle oscillations
3. Oscillation frequency tunable via coupling strength
4. Phase encodes temporal information
5. Applicable for timing, rhythm, sequential processing
```
### Pattern 3: Critical Switching
```
Use phase transitions for cognitive switching:
1. Tune parameters near critical boundary
2. Small perturbations trigger large-scale phase transitions
3. Models sudden insight, decision-making, attention shifts
4. Synaptic feedback provides hysteresis for bistable switching
```
## Error Handling
### Finite-Size Effects
- Small qubit counts show significant quantum fluctuations
- Use N ≥ 50 for mean-field approximation validity
- For small N, use exact diagonalization instead of mean-field
### Feedback Instability
- Excessive feedback gain can cause oscillatory instability
- Ensure learning_rate and decay parameters satisfy stability criteria
- Monitor Lyapunov exponent of combined quantum-classical dynamics
### Decoherence
- Physical qubit implementations subject to T1/T2 limits
- Incorporate Lindblad master equation for open-system dynamics
- Homeostatic feedback may partially compensate for dissipation
## Related Skills
- **quantum-brain-modeling**: General quantum brain architecture patterns
- **quantum-neural-hybrid**: Hybrid quantum-classical neural networks
- **attractor-metadynamics-neural**: Attractor landscape analysis
- **quantum-reservoir-computing**: Quantum reservoir computing
- **neural-population-dynamics**: Neural population analysis methods
## Limitations
- All-to-all connectivity assumption may not reflect biological neural wiring
- Mean-field analysis breaks down for small populations
- Physical implementation on quantum hardware requires qubit count scaling
- Synaptic feedback dynamics assumed classical — full quantum treatment pending
- Phase transition analysis assumes zero temperature
## References
- arXiv:2602.16003 — LMG qubits paper (https://arxiv.org/abs/2602.16003)
- Lipkin-Meshkov-Glick model original: Phys. Rev. 140, B911 (1965)
- https://arxiv.org/pdf/2602.16003 — PDF download