Skip to main content

QOP

Make quantum operators and algebras native in python

Behold, the power of qop.

  • Boson
from qop.boson import *
assert (b0.D*b0)**3 == b0.D*b0+3*b0.D**2*b0**2+b0.D**3*b0**3
  • Fermion
from qop.fermion import *
assert (c0.D*c0)**3 == c0.D*c0
  • Hardcore Boson
from qop.hardcoreboson import *
assert (hb0.D*hb0)**2 ==hb0.D*hb0
assert hb0*hb1 == hb1*hb0
  • Spin
from qop.spin import *
assert s0.x*s0.y == 1j/2*s0.z
assert s0.z*s1.x == -2j*s1.x*s0.x*s0.y
  • Grassmann numbers
from qop.grassmann import *
assert (1+g(0)*g(1))**2 == 1+2*g(0)*g(1)
  • Quaternion numbers
from qop.quaternion import *
assert (1-qi)/(1-qj) == 0.5*(1-qi+qj-qk)
  • Quantum states
from qop.fermion import *
from qop.state import *
assert Sf("1").D | c1.D * c1 | c1.D | Sf() == 1.0

See more examples in tests.

Metadata

Release files for qop 0.0.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 qop 0.0.1
File Size Uploaded Provenance Actions
qop-0.0.1.tar.gz 9.2 kB Without provenance Details for qop-0.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 24.9 kB

Release files / qop-0.0.1.tar.gz

Download URL qop-0.0.1.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
472d64e833560fec5188fc3ad8b55ad45114f7b61875272acdf94c9c002e34d9
BLAKE2b-256 checksum
How to use checksums
e2d8e6b95ba86822dc4d935ce26f022e7fccd666d64a9e98054047a4a2ea952e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.6.3

Release files / qop-0.0.1-py3-none-any.whl

Download URL qop-0.0.1-py3-none-any.whl
Size 15.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22271feafae13d151b1dc465054d917ff9a05a2478ec254ba31724ba06177b66
BLAKE2b-256 checksum
How to use checksums
74ee00050aad3b5e92446486a76328caf9b4fe1d9e85a5cf53a7e5209e339e89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.6.3

Security for qop 0.0.1

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files 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