Skip to main content

Pakistan's High-Performance Quantum Computing Framework

Project description

PKTron v2.9.7

Pakistan's High-Performance Quantum Computing Framework

NEW FEATURES IN v2.9.7

Dynamic Circuits

  • Mid-circuit measurement with state collapse
  • Conditional gates based on measurement results
  • Feedforward correction for quantum teleportation and error correction
  • Event logging for circuit decision tracking

Surface Code Quantum Error Correction

  • Distance-3, Distance-5, Distance-7 implementations
  • Syndrome computation for error detection
  • Logical error rate calculation with scaling analysis
  • Visualization of code layout and error patterns
  • Threshold behavior demonstration

Integration

Full quantum error correction framework supporting measurement-based feedback and scalable fault-tolerant quantum computing.

Installation

pip install pktron              # basic
pip install pktron[full]        # all extras
pip install pktron[gpu]         # GPU acceleration
pip install pktron[ml]          # ML layers

Quick Start

from pktron import QuantumCircuit, DynamicCircuitV2, SurfaceCode

# Standard circuit
qc = QuantumCircuit(2)
qc.h(0)
qc.cnot(0, 1)
print(qc.measure())

# Dynamic circuit with mid-circuit measurement
dyn = DynamicCircuitV2(3)
dyn.h(0)
result = dyn.measure_mid(0, 0)
dyn.if_bit(0, 1, 'x', 1)

# Surface code error correction
code = SurfaceCode(distance=3)
logical_error_rate = calculate_logical_error_rate(3, 0.01)

License

MIT

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

pktron-2.9.7.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

pktron-2.9.7-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file pktron-2.9.7.tar.gz.

File metadata

  • Download URL: pktron-2.9.7.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for pktron-2.9.7.tar.gz
Algorithm Hash digest
SHA256 836c5dd47f7d8c7c1eb95bace163fc6d98e4ed3dd11726e4a40ca2cea24485d1
MD5 a30065665f7fc33eb4b52ba2a13a6711
BLAKE2b-256 53e885931d9a71254de942dd5a768231ad9933f33c390d67da8d7478b2406057

See more details on using hashes here.

File details

Details for the file pktron-2.9.7-py3-none-any.whl.

File metadata

  • Download URL: pktron-2.9.7-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for pktron-2.9.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2479793604cacdac041df64aa9de0a32469cfbc91663d5907cd6f570df0a625b
MD5 51da02b7d2c60d1c9664426ce16c2a3d
BLAKE2b-256 799de463f18f95303735391655977cd909bc4b2a061e8ce0311ef91af0efe8d8

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