Skip to main content

Official implementation for 'Quantum Kolmogorov Arnold Network' (QuKAN) implementated using PennyLane and PyTorch. Paper: Werner, Y., Malemath, A., Liu, M., Fortes Rey, V., Palaiodimopoulos, N., Lukowicz, P., & Kiefer-Emmanouilidis, M. (2025). QuKAN: A Quantum Circuit Born Machine Approach to Quantum Kolmogorov Arnold Networks. Scientific Reports, 15(1), 35239.

Project description

QuKAN: Quantum Kolmogorov Arnold Network

QuKAN is a Python package for Quantum Kolmogorov Arnold Networks, built on top of PennyLane and PyTorch. It inlcudes hybrid and fully quantum neuron architecture implementations.

Features

  • Quantum Spline implementation
  • Quantum KAN Neurons
  • Scalable QuKAN architecture
  • Support for QCBM-based spline pretraining

Installation

# Using poetry
poetry install

Usage

import torch
import torch.nn as nn
from qukan import QuKAN

# 1. Initialize model
model = QuKAN(feature_dim=2, num_hlayers=1)

# 2. Setup training components
optimizer = torch.optim.Adam(model.parameters(), lr=0.01)
criterion = nn.MSELoss()

# 3. Dummy data
x = torch.rand(10, 2)
y = torch.rand(10, 1)

# 4. Training loop
for epoch in range(5):
    optimizer.zero_grad()
    output = model(x)
    loss = criterion(output, y)
    loss.backward()
    optimizer.step()
    print(f"Epoch {epoch+1}, Loss: {loss.item():.4f}")

License

LGPL-3.0-only

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qukan-0.1.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qukan-0.1.1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file qukan-0.1.1.tar.gz.

File metadata

  • Download URL: qukan-0.1.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.14.6 Darwin/25.5.0

File hashes

Hashes for qukan-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d33b60acf64ee7d671e0eb52e2690ad6b33632cd0a506b97bdd6865906d453a7
MD5 710d2bd019c1c335b752620f2aa2bc8b
BLAKE2b-256 b43df8410e1eb2a93cfe081e475d75de03e487acb1eb70ec15667cef89192a42

See more details on using hashes here.

File details

Details for the file qukan-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: qukan-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.14.6 Darwin/25.5.0

File hashes

Hashes for qukan-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e93218e51748db09e9f81dd7f84fd1468589601165918100abfd21969b7d86a8
MD5 bdbb5972c2c4d00ca926a4402719bb2d
BLAKE2b-256 c0c1f08fed152068e3cc747b3bc366a7f1c4a2cab58cf5318b5881f57e36f2a9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page