Skip to main content

quick-cppkh-interface

quick-cppkh-interface is a Python package for computing integer Khovanov homology through quick_cppkh.

It keeps the familiar cppkh-interface style API:

import quick_cppkh_interface

pd_code = [[1, 5, 2, 4], [3, 1, 4, 6], [5, 3, 6, 2]]

print(quick_cppkh_interface.solve_khovanov(pd_code))
print(quick_cppkh_interface.solve_many_khovanov([pd_code, pd_code]))

The package ships C++ source code in built distributions and compiles local executables on first use through cpp-simple-interface. The compiled executables are cached for later calls:

  • quick_cppkh
  • cppkh
  • pd_simplify

The default homology path races direct cppkh against pd_simplify followed by cppkh --no-simplify-pd, returning whichever successful route finishes first.

Install

pip install quick-cppkh-interface

A g++ compatible compiler must be available at runtime. To select a compiler, set CXX before importing or calling the package:

CXX=clang++ python your_script.py

Windows PowerShell:

$env:CXX = "C:\path\to\g++.exe"
python your_script.py

Build And Publish

From this directory:

poetry build
poetry publish

For local testing:

poetry run python -m quick_cppkh_interface "[[1,5,2,4], [3,1,4,6], [5,3,6,2]]"

Metadata

Release files for quick-cppkh-interface 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quick-cppkh-interface 0.1.0
File Size Uploaded
quick_cppkh_interface-0.1.0.tar.gz 87.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for quick-cppkh-interface 0.1.0
File Interpreter ABI Platform
quick_cppkh_interface-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 178.0 kB

Release files / quick_cppkh_interface-0.1.0.tar.gz

Download URL quick_cppkh_interface-0.1.0.tar.gz
Size 87.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e013ed88e28c8ac6e77399c02b24717618ba9bfa9419e6d41dca84fc532f8194
BLAKE2b-256 checksum
How to use checksums
b5c26cb9382056ad82941bbb8609ca1d8a44a1e211c24d6a2d86db791778b460
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.13.5 Windows/11

Release files / quick_cppkh_interface-0.1.0-py3-none-any.whl

Download URL quick_cppkh_interface-0.1.0-py3-none-any.whl
Size 90.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d98b2bca0358b60b82d01e43c8e1b85e780764ac8632f7c10431ace6b46b496b
BLAKE2b-256 checksum
How to use checksums
f1c8dc29919e1ebe3252124b19cee6dfd9822d40610c7c88cc71a0066b7f4c23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.13.5 Windows/11

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page