Skip to main content

SymboliQ: A python framework for Symbolic Quantum computation

SymboliQ is an extension of Sympy's Quantum Mechanics subpackage. It's the only Python package we know of that allows for simulation of quantum circuits via Dirac Notation. See the poster for an in-depth explanation.

Installation

The SymboliQ package is available via pip and can be installed in your current Python environment with the command:

pip install symboliq

Getting started

from sympy.physics.quantum import TensorProduct
from symboliq.dirac_notation import DiracNotation, cx, h, i, x, ket_0,  ket_1

print(DiracNotation(ket_0))
# prints
#|0>

print(DiracNotation(x * ket_1))
# prints
# (|0><1| + |1><0|)*|0>

bell_state = DiracNotation(
        cx * TensorProduct(h, i) * TensorProduct(ket_0, ket_0)
    )
print(bell_state.operate_reduce())
# prints
# sqrt(2)*|0>x|0>/2 + sqrt(2)*|1>x|1>/2

Feature requests / Bugs / Questions

If you have questions, feature requests or you found a bug, please file them on Github.

Metadata

Release files for symboliq 0.0.2

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

Built distribution (wheel)

Table of built distributions (wheels) for symboliq 0.0.2
File Interpreter ABI Platform
symboliq-0.0.2-py3-none-any.whl Python 3 none any Details

Release files / symboliq-0.0.2-py3-none-any.whl

Download URL symboliq-0.0.2-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9534fdaaa72eefa5c9e1d36ecc67f687bca394bba24791ac6b6a2dfead7bd737
BLAKE2b-256 checksum
How to use checksums
6a4f46957d3e29912a9ee4a85c22dee880911d1ffe6a14a67b885573ebd133e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Security for symboliq 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file No provenance

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