Skip to main content

python-qis

Small Python utilities for mathematics, quantum information science, cryptography, and introductory physics.

Requirements

  • Python 3.13 or newer

Installation

Install the latest release from PyPI with pip:

python -m pip install python-qis

Or add it to a project managed with uv:

uv add python-qis

Quick start

Cryptography

Hash functions accept bytes and return hexadecimal strings:

from python_qis.cryptography_tools import blake2, sha3

message = b"hello, QIS world"

print(blake2("b", message))
print(sha3("256", message))

Math and quantum states

from python_qis import general_math, qis_math

print(general_math.add(2, 3, 5))
print(general_math.pi(12))

state = qis_math.buildVector(1 / 2**0.5, 1 / 2**0.5)
print(qis_math.is_normalized([value[0] for value in state]))

Physics constants and standard states

from python_qis import physics_constants
from python_qis.physics_tools import BELL_PHI_PLUS, KET_0, KET_1, KET_PLUS

print(physics_constants["SPEED_OF_LIGHT"])
print(KET_0, KET_1, KET_PLUS, BELL_PHI_PLUS)

What's included?

  • Math utilities: arithmetic helpers, factorials, and decimal digits of pi.
  • Quantum information utilities: vector construction and normalization checks.
  • Cryptography utilities: BLAKE2 and SHA-3 hashing through Python's standard library.
  • Physics utilities: selected SI constants and common qubit states.

Development

Clone the repository and install it in an editable environment:

git clone https://github.com/VedanshShetti/python-qis.git
cd python-qis
uv sync

Build the package with:

uv build

License

This project is licensed under the terms in LICENSE.

Release files for python-qis 1.2.2

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

Source distribution (sdist)

Source distribution for python-qis 1.2.2
File Size Uploaded
python_qis-1.2.2.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-qis 1.2.2
File Interpreter ABI Platform
python_qis-1.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 7.9 kB

Release files / python_qis-1.2.2.tar.gz

Download URL python_qis-1.2.2.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
01ca190109a1b95c8b5a079277423deffc620bf791ae8b2e5116ea30429513ca
BLAKE2b-256 checksum
How to use checksums
9893fbaa5220cf0eac36b12f318c0d8d2b02c6211d5cefe8986ba6b659bc233d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / python_qis-1.2.2-py3-none-any.whl

Download URL python_qis-1.2.2-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bba363a7178279a0f6a10d105f2a2f0887b9ea1078e3baf03d4d190954639fa4
BLAKE2b-256 checksum
How to use checksums
5fa60b5f2e3f1d9dd58aaca10eb62d6d96256547204d4fac6262e41745fb07c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

1.2.2 This release

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

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