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,strat='QCBM')

# 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).to(torch.float64)

# 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.2.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.2-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qukan-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 a76ee66e5d1638892b49571a877bb43f92e462f0d18c1fbd4c07a6f39e50a72c
MD5 4ffde50ecec06450219f7bbcd1f7b97f
BLAKE2b-256 2b1f53c64efe08c838187543d0370d42720cadba7d6eccd7e3253f1dfe5a7b43

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qukan-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 29f5d69908a0b15ac5b3bfb3e3802e6c542cafe40eb162141eeb1fc1fcc21d02
MD5 9364faf5f85e31c7e57058654952f40f
BLAKE2b-256 65276695ed92fc6f4090903ad45aaa70771a9b72a23a126bbcff46cf7c8ad2fd

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