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.gates import h, z

def oracle(x): return x  # Constant function

a = pyqsim.types.qint1_t()
z(oracle(h(a)))
result = pyqsim.gates.measure(a)
print("Constant" if result == 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 see our Contributing Guidelines for more details.

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.2.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

pyqsim-0.0.2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyqsim-0.0.2.tar.gz
  • Upload date:
  • Size: 6.6 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.2.tar.gz
Algorithm Hash digest
SHA256 ed15124f07ff2d2cec8043e0da5739070e692043424cc60b1a4505cc2f72e6b4
MD5 d07eaf1a693680690cc73e1c58e7949b
BLAKE2b-256 1de383f29902040b8a1d36614de4e78323753783e4b2662ccbfa9963eca7a2ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyqsim-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.5 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 443e857a2d6bbe570fcf0f754ca49f64661a781d00f66ee1ee29251a1524afad
MD5 8b4003b2d50857fe4bb0be244fc8ec3a
BLAKE2b-256 a3161e3762f01686e012134b247a5bdd71cff16ebaa524497780fc36c25985c7

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