Quantum tensor network simulation optimization with PTSBE (Pre-Trajectory Sampling with Batched Execution). Accelerates quantum trajectory methods for noisy quantum systems. Use when: (1) Simulating noisy quantum circuits, (2) Optimizing tensor network quantum simulations, (3) Implementing batched sampling for quantum statevectors, (4) Reducing computational overhead in quantum density matrix simulations.
Scanned 9/11/2026
Install to Claude Code
npx -y skills add hiyenwong/ai_collection --skill quantum-tensor-network-simulation --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Quantum Tensor Network Simulation?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/hiyenwong-quantum-tensor-network-simulation)More formats (shields.io, HTML) on the badges page.
---
name: quantum-tensor-network-simulation
description: "Quantum tensor network simulation optimization with PTSBE (Pre-Trajectory Sampling with Batched Execution). Accelerates quantum trajectory methods for noisy quantum systems. Use when: (1) Simulating noisy quantum circuits, (2) Optimizing tensor network quantum simulations, (3) Implementing batched sampling for quantum statevectors, (4) Reducing computational overhead in quantum density matrix simulations."
---
# Quantum Tensor Network Simulation
Optimization techniques for quantum tensor network simulations using trajectory methods and batched execution.
## Core Concepts
### Quantum Trajectory Methods
Quantum trajectory methods reduce computational overhead of simulating noisy quantum systems by:
- Approximating with m stochastically sampled 2^n-entry quantum statevectors
- Instead of exact 2^{2n}-entry density matrices
- Computational overhead reduction: O(2^n) vs O(2^{2n})
### PTSBE (Pre-Trajectory Sampling with Batched Execution)
Key optimization framework:
1. **Pre-Trajectory Sampling**: Batch stochastic trajectories before evolution
2. **Batched Execution**: Execute multiple trajectories in parallel
3. **Speedup**: Statevector implementations achieve >10^6× speedup
4. **Tensor Network**: Adapt batched execution for tensor network representations
## Implementation Patterns
### Pattern 1: Batched Statevector Evolution
```python
def batched_trajectory_evolution(initial_state, num_trajectories, time_steps, noise_model):
"""
Evolve multiple quantum trajectories in batch.
Args:
initial_state: Initial quantum state (2^n vector)
num_trajectories: Number of stochastic trajectories
time_steps: Evolution steps
noise_model: Quantum noise operators
Returns:
Batch of final states, averaged expectation values
"""
# Batch initial states
batch = np.tile(initial_state, (num_trajectories, 1))
for t in time_steps:
# Apply unitary evolution
batch = apply_unitary_batch(batch, unitary(t))
# Apply stochastic noise (batched)
batch = apply_noise_batch(batch, noise_model)
return batch, compute_expectations(batch)
```
### Pattern 2: Tensor Network Optimization
For large systems (n > 30), use tensor network representation:
- MPS (Matrix Product State) for 1D systems
- PEPS (Projected Entangled Pair State) for 2D systems
- Tree tensor networks for hierarchical structure
Key optimization: **Non-degenerate batched sampling**
- Avoid trajectory degeneracy through unique sampling paths
- Use importance sampling for rare events
- Parallelize tensor contractions across batch
## Mathematical Framework
### Density Matrix vs Trajectory
Density matrix approach:
```
ρ(t) = exp(-iHt - Γt) ρ(0) exp(iHt - Γt)
Cost: O(2^{2n}) operations
```
Trajectory approach:
```
|ψ_k(t)⟩ = stochastic evolution with noise jumps
ρ(t) ≈ (1/m) Σ_k |ψ_k(t)⟩⟨ψ_k(t)|
Cost: O(m · 2^n) operations
```
### Unified Path Variations
For tensor networks:
- Represent trajectory as contraction path
- Optimize path ordering for each trajectory
- Share optimized paths across batch
## References
See [tensor_network_basics.md](references/tensor_network_basics.md) for MPS/PEPS fundamentals.
See [quantum_noise_models.md](references/quantum_noise_models.md) for noise operator implementations.
## Tools Used
- `exec`: Run Python simulation scripts
- `write`: Save simulation results and metrics
- `read`: Load initial states and circuit descriptions
## Use Cases
1. **Quantum Circuit Simulation**: Simulate noisy quantum circuits efficiently
2. **Quantum Error Analysis**: Analyze error propagation in quantum computations
3. **Benchmarking**: Compare trajectory methods vs exact density matrix
4. **Large-Scale Simulation**: Extend to >30 qubit systems with tensor networks
## Related Skills
- **quantum-computing-basics**: Fundamental quantum computing concepts
- **tensor-network-methods**: General tensor network algorithms
- **impurity-model-analysis**: Related impurity Hamiltonian simulations
## Source
Based on arxiv:2604.08467 - "Accelerating Quantum Tensor Network Simulations with Unified Path Variations and Non-Degenerate Batched Sampling" by Taylor Lee Patti et al.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!