Skip to main content

Zixy

CI PyPI version License: Apache-2.0

Zixy is a high performance library for the manipulation of Pauli strings and other quantum algebraic objects.

Installation

From PyPI

The package is available via PyPI and can be installed using the preferred package manager, such as pip.

pip install zixy

From source

Developers may wish to install from source. The recommended method is by using maturin from the top level directory.

git clone https://github.com/quantinuum/zixy
cd zixy
maturin develop

Usage

Overview

The package is written in Rust, with Python bindings enabled via PyO3. The base containers in the Python interface are defined in a general fashion. The user-facing API separates these objects into three important classes:

  • Coeff: a coefficient, defining a scalar value of varying types.
  • Cmpnt: a component, defining a basic algebraic building block.
  • Term: a term, consisting of a Cmpnt scaled by a Coeff.

Coefficients are separated into built-in Python types such as float or complex, symbolic sympy expressions, and roots of unity such as Sign and ComplexSign, which have custom implementations.

Additionally, each such class has associated containers for collections of that type. Implementations of these base classes may narrow their implementation depending on the coefficient type.

Example

These general building blocks are sufficient to define many different quantum algebraic objects. An example of one such specification of the objects in Zixy is Pauli strings. These are made available in the zixy.qubit.pauli submodule, with the qubits forming a basis for their definition available in zixy.qubit.

import zixy.qubit as zq
import zixy.qubit.pauli as zqp

qubits = zq.Qubits.from_count(4)
print(len(qubits))  # 4

strings = zqp.Strings.from_str("X0 Y1 Z3", qubits)
print(str(strings))  # X0 Y1 Z3

terms = zqp.RealTerms.from_str("X0 Y1 Z3")
print(str(terms))  # (1, X0 Y1 Z3)

For other specifications such as computational basis vectors, further example notebooks are available.

Rust

The trait NumRepr (meaning "number representation") is implemented by all types that can represent the numbers multiplying components. In collections, these are stored contiguously in vector-like structures. Values of NumRepr types are closed under multiplication, but do not implement addition. Implementers of NumRepr are

  • Unity: a unit type representing +1 and only +1. The corresponding collection container UnityVec only stores a length, the number of unit values.
  • Sign: the square roots of unity (+1, -1). The corresponding collection container, SignVec is implemented as a bitset.
  • ComplexSign: the fourth roots of unity (+1, +i, -1, -i). The corresponding collection container, ComplexSignVec is implemented as a paired bitset.

The FieldElem subtrait of NumRepr is implemented by types whose values form a field with multiplication and addition. Implementers of both NumRepr and FieldElem use Vec<T> for collection storage, and are

  • Real: Floating point value f64
  • Complex: Complex floating point value Complex64 from num_complex crate.

The Python interface further supports symbolic types via SymPy, which are not currently available within the Rust library.

On the Rust side, components are stored contiguously in CmpntList types. These implement the business logic applicable to their elements. There are three main kinds of container that encapsulate CmpntList with generic coefficient type C

  • Terms<C: NumRepr>: stores a C::Vector of the same length as the CmpntList, offers mutable access to the components and coefficients.
  • TermSet<C: NumRepr>: stores a C::Vector of the same length as the CmpntList and via an indirect hash map, provides constant complexity lookup and enforces uniqueness among components. Offers mutable access only to the coefficients.
  • TermSum<C: FieldElem>: works like Set<C> but with linear combination semantics and is only defined for FieldElem-implementing coefficient types.

Metadata

Release files for zixy 0.4.5

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

Source distribution (sdist)

Source distribution for zixy 0.4.5
File Size Uploaded Provenance Actions
zixy-0.4.5.tar.gz 616.2 kB With provenance Details for zixy-0.4.5.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for zixy 0.4.5
File Actions
zixy-0.4.5-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for zixy-0.4.5-cp310-abi3-win_amd64.whl
zixy-0.4.5-cp310-abi3-win32.whl CPython 3.10 abi3 Windows x86-32 Details for zixy-0.4.5-cp310-abi3-win32.whl
zixy-0.4.5-cp310-abi3-pyemscripten_2025_0_wasm32.whl CPython 3.10 abi3 PyEmscripten 2025.0+ WebAssembly Details for zixy-0.4.5-cp310-abi3-pyemscripten_2025_0_wasm32.whl
zixy-0.4.5-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details for zixy-0.4.5-cp310-abi3-musllinux_1_2_x86_64.whl
zixy-0.4.5-cp310-abi3-musllinux_1_2_i686.whl CPython 3.10 abi3 Linux musl 1.2+ x86-32 Details for zixy-0.4.5-cp310-abi3-musllinux_1_2_i686.whl
zixy-0.4.5-cp310-abi3-musllinux_1_2_armv7l.whl CPython 3.10 abi3 Linux musl 1.2+ ARMv7l Details for zixy-0.4.5-cp310-abi3-musllinux_1_2_armv7l.whl
zixy-0.4.5-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details for zixy-0.4.5-cp310-abi3-musllinux_1_2_aarch64.whl
zixy-0.4.5-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details for zixy-0.4.5-cp310-abi3-manylinux_2_28_x86_64.whl
zixy-0.4.5-cp310-abi3-manylinux_2_28_s390x.whl CPython 3.10 abi3 Linux glibc 2.28+ IBM System/390x Details for zixy-0.4.5-cp310-abi3-manylinux_2_28_s390x.whl
zixy-0.4.5-cp310-abi3-manylinux_2_28_ppc64le.whl CPython 3.10 abi3 Linux glibc 2.28+ PowerPC 64-le Details for zixy-0.4.5-cp310-abi3-manylinux_2_28_ppc64le.whl
zixy-0.4.5-cp310-abi3-manylinux_2_28_i686.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-32 Details for zixy-0.4.5-cp310-abi3-manylinux_2_28_i686.whl
zixy-0.4.5-cp310-abi3-manylinux_2_28_armv7l.whl CPython 3.10 abi3 Linux glibc 2.28+ ARMv7l Details for zixy-0.4.5-cp310-abi3-manylinux_2_28_armv7l.whl
zixy-0.4.5-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details for zixy-0.4.5-cp310-abi3-manylinux_2_28_aarch64.whl
zixy-0.4.5-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for zixy-0.4.5-cp310-abi3-macosx_11_0_arm64.whl

Total release size: 24.4 MB

Release files / zixy-0.4.5.tar.gz

Download URL zixy-0.4.5.tar.gz
Size 616.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d7c37007cbfce1959ff0f96eed78da0ad58626399535a7fb26357bf477654995
BLAKE2b-256 checksum
How to use checksums
2282b4e0fff301b26f5958e3ea85ed32352d16d1e1b501f620ba2c0f715f7d5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / zixy-0.4.5-cp310-abi3-win_amd64.whl

Download URL zixy-0.4.5-cp310-abi3-win_amd64.whl
Size 1.4 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
07fc7ce60a0c6539fc67ad45b3c741ae68eb67e3afdc31b8e9bf23df971d86b9
BLAKE2b-256 checksum
How to use checksums
f5531cc90e13c3e6221de345f9349f4da873f12dc1bd7f315b2ee90da6cfd57b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / zixy-0.4.5-cp310-abi3-win32.whl

Download URL zixy-0.4.5-cp310-abi3-win32.whl
Size 1.3 MB
Tags CPython 3.10 Windows x86-32 abi3
SHA-256 checksum
How to use checksums
531726889995d8bc1d66a7ad77a7c88f03b4ffe97402f729fe9ef74128e22967
BLAKE2b-256 checksum
How to use checksums
4a6f6df3ebc5e5aa783df8a4817b2b894fd0ca1d9406c27afa204bda3692a6f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / zixy-0.4.5-cp310-abi3-pyemscripten_2025_0_wasm32.whl

Download URL zixy-0.4.5-cp310-abi3-pyemscripten_2025_0_wasm32.whl
Size 938.1 kB
Tags CPython 3.10 PyEmscripten 2025.0+ WebAssembly abi3
SHA-256 checksum
How to use checksums
aa3ae878295a57667b6020f57f7b3b078b63d82d3e1b7ef390ee3d8180191fd3
BLAKE2b-256 checksum
How to use checksums
1225d5d49205a1a1bb8f32cdadd909b8d187ee0410b1f036fa92b0398154edd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / zixy-0.4.5-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL zixy-0.4.5-cp310-abi3-musllinux_1_2_x86_64.whl
Size 2.0 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
895b9aa216ca513b2daeb3fa63fd07bedd0b91d314910c822bc10226517f3322
BLAKE2b-256 checksum
How to use checksums
3b848c77d54b286f45ca3f9c9f38493803abeba8a6287f390c6a8c864ec20b43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / zixy-0.4.5-cp310-abi3-musllinux_1_2_i686.whl

Download URL zixy-0.4.5-cp310-abi3-musllinux_1_2_i686.whl
Size 2.0 MB
Tags CPython 3.10 Linux musl 1.2+ x86-32 abi3
SHA-256 checksum
How to use checksums
4479a1f12943c230d732942bfa71339a668b3e00172ac3f2e3ee5c4e6add3b68
BLAKE2b-256 checksum
How to use checksums
f52180a18f752183088e2d123ee4ca4c8de7571806be3fea89ef9c4a0eb90e28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / zixy-0.4.5-cp310-abi3-musllinux_1_2_armv7l.whl

Download URL zixy-0.4.5-cp310-abi3-musllinux_1_2_armv7l.whl
Size 1.9 MB
Tags CPython 3.10 Linux musl 1.2+ ARMv7l abi3
SHA-256 checksum
How to use checksums
78793d2bf186e082e6b274324b7cc2a6f86a782d70f84552a6de0e51be3d372b
BLAKE2b-256 checksum
How to use checksums
c5740ec8406e118a33282ebd3fcb47235e40cd847eadfdfd24b52f404f048627
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / zixy-0.4.5-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL zixy-0.4.5-cp310-abi3-musllinux_1_2_aarch64.whl
Size 1.9 MB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
48a2e314ab468e26648a9a4712fd29bb2ffe68cfbb3980faf8471af628dd312b
BLAKE2b-256 checksum
How to use checksums
be9cbd666806d6e117f0432f86a7cb8d6005f2994a91ae785ad446e35088a674
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / zixy-0.4.5-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL zixy-0.4.5-cp310-abi3-manylinux_2_28_x86_64.whl
Size 1.7 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
8457fec8ffbc860958df7ed4de147fe09efce8ff68325e73fbf0e669cf9619fa
BLAKE2b-256 checksum
How to use checksums
db0abae23e08237f438d9fae1f7e576423c2f1f775f60e2ae7f64740e4818bd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / zixy-0.4.5-cp310-abi3-manylinux_2_28_s390x.whl

Download URL zixy-0.4.5-cp310-abi3-manylinux_2_28_s390x.whl
Size 1.8 MB
Tags CPython 3.10 Linux glibc 2.28+ IBM System/390x abi3
SHA-256 checksum
How to use checksums
4a7249bf7219585f72a8e1dd0d99d02f1454a256c21128e4e752ae738f23488f
BLAKE2b-256 checksum
How to use checksums
4fd3121a3fc94a26cb8c8ae9f018934e0c76f36c8a14414532c8de0fc993a0b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / zixy-0.4.5-cp310-abi3-manylinux_2_28_ppc64le.whl

Download URL zixy-0.4.5-cp310-abi3-manylinux_2_28_ppc64le.whl
Size 2.0 MB
Tags CPython 3.10 Linux glibc 2.28+ PowerPC 64-le abi3
SHA-256 checksum
How to use checksums
17487430b4953ba22d12fde1908352a39e20ff6553dbc61f14d6bee8279f581b
BLAKE2b-256 checksum
How to use checksums
26321f1ee3d0a270b834e962c02937c938ca8d90e75942031f0f14a0dd8c542d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / zixy-0.4.5-cp310-abi3-manylinux_2_28_i686.whl

Download URL zixy-0.4.5-cp310-abi3-manylinux_2_28_i686.whl
Size 1.8 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-32 abi3
SHA-256 checksum
How to use checksums
6882deb6261d0be8d144059949bc3bd0e86cbd5efd4185b05a86ff16cab3e968
BLAKE2b-256 checksum
How to use checksums
81f4ad54c09b98cc8d749529047835e2ba8c8f2de5bd81e614c5b80b5e0e4dfb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / zixy-0.4.5-cp310-abi3-manylinux_2_28_armv7l.whl

Download URL zixy-0.4.5-cp310-abi3-manylinux_2_28_armv7l.whl
Size 1.7 MB
Tags CPython 3.10 Linux glibc 2.28+ ARMv7l abi3
SHA-256 checksum
How to use checksums
366363b8e6d695999c1588caa15a41cfeaa3ec89c65fae2dbed91fbe28c9d51e
BLAKE2b-256 checksum
How to use checksums
d11cbc5fca3b67bdd80cb7ab97323f3e74f2cd412397021ac510bad351b47bbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / zixy-0.4.5-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL zixy-0.4.5-cp310-abi3-manylinux_2_28_aarch64.whl
Size 1.7 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
9d435f69e7b8b14e414d51cde3414c0e574a59329cdc934c9ef9683fab8c18b3
BLAKE2b-256 checksum
How to use checksums
2ebd90034681eefd1b964f3f2cfd0cb85f576857f033c29079366803f8bc0975
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / zixy-0.4.5-cp310-abi3-macosx_11_0_arm64.whl

Download URL zixy-0.4.5-cp310-abi3-macosx_11_0_arm64.whl
Size 1.5 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3f8c406e7f3603dd0f94c80bf952eb52871febc2d81da46181e598f90885d3f9
BLAKE2b-256 checksum
How to use checksums
939f787479e7c0d5a715c38a3e6b0966bccbfb153c1fc254df9922c00d05602b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for zixy 0.4.5

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.

Full provenance

All 15 files in this release have been uploaded with provenance metadata.

Select from 15 files

Attestation for zixy-0.4.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

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.

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