Skip to content
Back to skills

Photonic Deep Quantum Neural Network

ASecurity

Photonic-implemented deep quantum neural network via virtual-driven Hilbert space expansion. Enables effective non-unitary and nonlinear activation functions on linear programmable quantum photonic chips using input replication and mode expansion. Use when: implementing QNNs on photonic platforms, quantum neural activation functions, quantum photonic computing, deep quantum networks, non-unitary quantum operations.

  • 3 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 11, 2026
toolspython

Works with

  • terminal

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add hiyenwong/ai_collection --skill photonic-deep-quantum-neural-network --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Photonic Deep Quantum Neural Network?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Photonic Deep Quantum Neural Network
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hiyenwong-photonic-deep-quantum-neural-network/badge)](https://www.skillsdirectory.com/skills/hiyenwong-photonic-deep-quantum-neural-network)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: photonic-deep-quantum-neural-network
description: "Photonic-implemented deep quantum neural network via virtual-driven Hilbert space expansion. Enables effective non-unitary and nonlinear activation functions on linear programmable quantum photonic chips using input replication and mode expansion. Use when: implementing QNNs on photonic platforms, quantum neural activation functions, quantum photonic computing, deep quantum networks, non-unitary quantum operations."
---

# Photonic Deep Quantum Neural Network (PD-QNN)

## Overview

Deep QNNs on integrated photonic platforms face a critical challenge: implementing non-unitary and nonlinear activation functions within a linear quantum photonic system. PD-QNN solves this via virtual-driven Hilbert space expansion through input replication and mode expansion.

Source: arXiv:2605.06397 (2026-05-07)

## Core Problem

Classical NNs require:
1. **Nonlinear activation** (ReLU, sigmoid, etc.)
2. **Cascadability** across layers

QNNs on photonic platforms face:
- Quantum evolution is inherently **unitary and linear**
- Existing solutions (ancillary qubits + measurement feedback) have high resource costs and poor cascadability

## PD-QNN Solution

### Virtual-Driven Hilbert Space Expansion

**Method**: Input replication + mode expansion

1. **Input Replication**: Duplicate input states across multiple modes
2. **Mode Expansion**: Expand computational Hilbert space beyond physical qubits
3. **Effective Nonlinearity**: Achieve effective non-unitary operations through interference in expanded space
4. **Cascadability**: All operations remain within the linear photonic chip framework

### Key Advantages

- **No ancillary qubits** required for activation
- **No measurement feedback** needed between layers
- **Integrated platform** compatible — works on standard programmable photonic chips
- **Scalable** — avoids exponential resource overhead
- **Programmable** — leverages existing photonic circuit architectures

## Architecture

```
Input → [Mode Expansion] → [Linear Unitary Transform] → [Interference-based Nonlinearity] → Output
                              ↑                                    ↑
                      Virtual Hilbert Space              Effective Activation
```

### Layer Design

1. **Encoding Layer**: Map classical data to quantum states via optical modes
2. **Expansion Layer**: Replicate inputs across expanded mode space
3. **Unitary Layer**: Programmable interferometer network (Mach-Zehnder mesh)
4. **Activation Layer**: Interference-based effective nonlinearity
5. **Measurement Layer**: Detect output probabilities

## Implementation Patterns

### Pattern 1: Mode Expansion

```python
# Conceptual: Expand n input modes to 2n virtual modes
def expand_hilbert_space(input_state, expansion_factor=2):
    """Replicate input across expanded mode space."""
    return np.kron(input_state, np.ones(expansion_factor))
```

### Pattern 2: Effective Nonlinearity

```python
# Nonlinearity emerges from interference in expanded space
def effective_activation(unitary_output, interference_pattern):
    """Effective nonlinear activation via quantum interference."""
    # Interference creates amplitude redistribution
    # Equivalent to nonlinear activation in classical NN
    return interference_pattern @ unitary_output
```

### Pattern 3: Cascaded QNN Layers

```python
class PhotonicQNNLayer:
    def __init__(self, n_modes, expansion_factor=2):
        self.expansion = expansion_factor
        self.n_virtual = n_modes * expansion_factor
        # Programmable unitary (e.g., Reck or Clements decomposition)
        self.unitary = learnable_unitary(self.n_virtual)
        self.interference = learnable_interference(self.n_virtual)
    
    def forward(self, x):
        expanded = self.expand(x)
        evolved = self.unitary @ expanded
        activated = self.effective_activation(evolved)
        return activated
```

## Activation Keywords

- photonic quantum neural network
- quantum photonic activation
- deep QNN photonic
- virtual Hilbert space expansion
- quantum optical neural network
- nonlinear quantum activation
- integrated quantum photonics

## Tools Used

- `terminal`: Run quantum simulation (Qiskit, Strawberry Fields)
- `write`: Create photonic circuit designs
- `web_search`: Find photonic QNN papers

## Related Photonic Platforms

- **Programmable photonic chips**: Silicon photonics, lithium niobate
- **Interferometer meshes**: Mach-Zehnder interferometer arrays
- **Detectors**: Single-photon detectors for measurement

## Applications

1. **Quantum Machine Learning**: QNN-based classification and regression
2. **Quantum Advantage**: Exploit quantum speedup in neural computation
3. **Energy-Efficient Computing**: Photonic computing for low-power AI
4. **Near-Term Quantum**: Compatible with NISQ-era photonic devices

## Pitfalls

- **Optical Losses**: Real photonic chips have loss — must account for decoherence
- **Calibration**: Programmable unitaries require precise phase calibration
- **Detection Efficiency**: Single-photon detector efficiency affects readout
- **Scaling Limits**: Mode expansion increases resource requirements with depth

## Related Skills

- quantum-neural-dynamics
- quantum-ml-patterns
- continuous-variable-quantum-neural-networks

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.