Skip to main content

High-Level Quantum Computing Simulation in Python

Project description

pyqsim: High-Level Quantum Computing Simulation in Python

pyqsim is a Python library designed to simplify quantum computing simulation through high-level abstractions. It aims to make quantum programming more accessible and intuitive, bridging the gap between classical and quantum computing paradigms.

Features

  • High-Level Abstraction: Move beyond low-level circuit and qubit manipulations to a more intuitive programming model.
  • Automatic Inverse Operations: Objects automatically perform inverse operations upon deletion, maintaining quantum state consistency.
  • Familiar Programming Model: Use quantum data types similarly to classical types like int, making the transition to quantum computing smoother for classical programmers.
  • Eager Execution: Computations are performed immediately as Python functions are called, allowing for real-time interaction and debugging.
  • Quantum-Classical Hybrid Programming: Seamlessly mix quantum operations with classical programming constructs.

Installation

pip install pyqsim

Quick Start

Here's a simple example implementing Deutsch's algorithm:

import pyqsim
from pyqsim.types import qint
from pyqsim.gates import h, z

def oracle(x): return x & ~x  # Constant function

a = qint(0, size=1)
z(oracle(h(a)))
print("Constant" if int(a) == 0 else "Balanced")

Advanced Usage

Check out the examples/ directory for more complex quantum algorithms implementations, including Grover's search algorithm.

Contributing

We welcome contributions! Please contact me through email.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For any queries or support, please open an issue on our GitHub repository or contact me at cykim@snu.ac.kr.

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

pyqsim-0.0.4.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

pyqsim-0.0.4-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file pyqsim-0.0.4.tar.gz.

File metadata

  • Download URL: pyqsim-0.0.4.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for pyqsim-0.0.4.tar.gz
Algorithm Hash digest
SHA256 9ef03e04eb3267edba628e6ff27466d7ddcdade9644e044235f166948ff599c0
MD5 1e36b716f26b782dad56907ca2b74cee
BLAKE2b-256 b86f7475044c1a00447b9aaacfffc13d75b2e37c32920bc426b7e0dde0b5f986

See more details on using hashes here.

File details

Details for the file pyqsim-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: pyqsim-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for pyqsim-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 11c8416f6f4ddcb89ad17aabcc60e07ab97a59199c05b6984a9c248dbe566a79
MD5 82d21de20c06546da89c2ca71b6fc30e
BLAKE2b-256 bbd3fce0de441c997e63a198e2b57c054e37064242f2de4bd335b1defdbf6a0a

See more details on using hashes here.

Supported by

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