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.1

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.1
File Size Uploaded
python_qis-1.2.1.tar.gz 3.0 kB Details

Built distribution (wheel)

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

Total release size: 7.8 kB

Release files / python_qis-1.2.1.tar.gz

Download URL python_qis-1.2.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7af6662169117f85788de52a7999e19af00a9cb05352fd51af79a98c519dbd31
BLAKE2b-256 checksum
How to use checksums
fe6d3aa594b26a74995019c05ea8020f4c811ba4a8685775fee58cb5df6cf187
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.1-py3-none-any.whl

Download URL python_qis-1.2.1-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
921a09af51e69ee5964434bee220f3db79bd5f908e89f42c67a2a3b9fb4ff6e2
BLAKE2b-256 checksum
How to use checksums
dc983c11e741fc78b8671adbff1b00fc11f6efa691c16db56c765efb6461985c
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

1.2.2

2 release files

This release

1.2.1 This release

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