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

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.3
File Size Uploaded Provenance Actions
zixy-0.4.3.tar.gz 606.7 kB With provenance Details for zixy-0.4.3.tar.gz

Built distributions (wheels)

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

Total release size: 23.0 MB

Release files / zixy-0.4.3.tar.gz

Download URL zixy-0.4.3.tar.gz
Size 606.7 kB
Tags Source
SHA-256 checksum
How to use checksums
735fca5cec91a108f695e634e863aea5a9d4cde6f17c2e6dd1dbade5f5d766c9
BLAKE2b-256 checksum
How to use checksums
87b1426be1031e1c25ab3363143a4b430bc23c34053610c385d4011287768979
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 Oct 27, 2026.

Transparency log

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

Download URL zixy-0.4.3-cp310-abi3-win_amd64.whl
Size 1.4 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
e8e0e8a2500d3a9a7881405441fbb6568177b1cc9df41c419ca1e80108ffa2f7
BLAKE2b-256 checksum
How to use checksums
759c3052df2711cf9ad17368de3299860c3b10a7383f879868b11597152cd7fb
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 Oct 27, 2026.

Transparency log

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

Download URL zixy-0.4.3-cp310-abi3-win32.whl
Size 1.3 MB
Tags CPython 3.10 Windows x86-32 abi3
SHA-256 checksum
How to use checksums
3afd45ee38e179208dd039369d6a3c870a41441aac398bea530b831944f0d21e
BLAKE2b-256 checksum
How to use checksums
125f099a96865c06565239973fe87221d26ad850d6f4786c98fe6c19428cd318
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 Oct 27, 2026.

Transparency log

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

Download URL zixy-0.4.3-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
c63f57d21903be6e9ba4177b62ea3508379dcd76d40a2e3cd802c9468e577d47
BLAKE2b-256 checksum
How to use checksums
cdee69b13beb56caf885ec7ba008a2a57bbf2d6921f399ec58b4cf1f9c803753
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 Oct 27, 2026.

Transparency log

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

Download URL zixy-0.4.3-cp310-abi3-musllinux_1_2_i686.whl
Size 1.9 MB
Tags CPython 3.10 Linux musl 1.2+ x86-32 abi3
SHA-256 checksum
How to use checksums
a2822196d4d8b424dc31166fc891af0e49b8ad8b28c4a23663f97a4af8e27653
BLAKE2b-256 checksum
How to use checksums
6031ca7658a76edaac9b7377d85b33ff23381799d5a2a171e882be6551588270
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 Oct 27, 2026.

Transparency log

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

Download URL zixy-0.4.3-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
97305e0877089002925dd886517045baf4bd6bec8fccb0e994b6cc9dd79a40f9
BLAKE2b-256 checksum
How to use checksums
84d83f5dc58e5eabdc1594f21cd412f726fc4f2bd8bcde9a11d9b0d808b54877
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 Oct 27, 2026.

Transparency log

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

Download URL zixy-0.4.3-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
28916d0e7e574d27efc4dbc7f4c3bb6486324fe17dfee7e37ac6f4ac96985d28
BLAKE2b-256 checksum
How to use checksums
51f0329059f4569c0396710644c586a3cf0bd57c4a6f45d2fa7c41cbc7590e5c
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 Oct 27, 2026.

Transparency log

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

Download URL zixy-0.4.3-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
26a5c37430c333881c9f399e4b4800c654c26657f88fe1bbe51fba9f48d18620
BLAKE2b-256 checksum
How to use checksums
f0545c9a0200d2c54fca5ca67ed094841802ce8cef976bffbc5f2070461ffd30
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 Oct 27, 2026.

Transparency log

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

Download URL zixy-0.4.3-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
e80cfbc3ea0a14c047613bae25e10ab463836d25d5bc024b0f1c0482e5f27cd8
BLAKE2b-256 checksum
How to use checksums
47713a538d05d3d23aa7d601860e9e107168dcc6fad82055b9a4decd05124cff
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 Oct 27, 2026.

Transparency log

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

Download URL zixy-0.4.3-cp310-abi3-manylinux_2_28_ppc64le.whl
Size 1.9 MB
Tags CPython 3.10 Linux glibc 2.28+ PowerPC 64-le abi3
SHA-256 checksum
How to use checksums
a2df79ebf7ab5797e515646f3aae4aa6a11639d48d384892d4726736bb451ba3
BLAKE2b-256 checksum
How to use checksums
ef9b304f6da8fd65ef9800ce976250454bf823a591b9e6cae90bfba3811126ca
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 Oct 27, 2026.

Transparency log

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

Download URL zixy-0.4.3-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
7d876c5f7a935d52bd19478ff3af9908defe17f4f0cc4033c3332f2b5b160d7a
BLAKE2b-256 checksum
How to use checksums
5808f335175343a2324ea7323dc4f583e1b76a9a8862bd6a7efd33d2bfa4581b
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 Oct 27, 2026.

Transparency log

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

Download URL zixy-0.4.3-cp310-abi3-manylinux_2_28_armv7l.whl
Size 1.6 MB
Tags CPython 3.10 Linux glibc 2.28+ ARMv7l abi3
SHA-256 checksum
How to use checksums
668b67981e5e5a6326f648d821778966def38de3ae5dedfcfa9ec6e63428d81c
BLAKE2b-256 checksum
How to use checksums
330dbd3805bdfc6dc424e858559414976c6168fe0227c226ded629be1a314e0a
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 Oct 27, 2026.

Transparency log

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

Download URL zixy-0.4.3-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
50ec4120af6eae1e14b1ab77949902dd1cca016810f986030b6c0c9530fb25fc
BLAKE2b-256 checksum
How to use checksums
7d410bfa56003cc212d4988461945d345ff10d2e41c9f1a59c1957032b3acf47
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 Oct 27, 2026.

Transparency log

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

Download URL zixy-0.4.3-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
14aacfaf6c1a4bad57c793a5357435ab4a422664efc961467ab8c3bfdb5a96b5
BLAKE2b-256 checksum
How to use checksums
648a28c0db5bc5387815a237e78efc51de61f13dc02473c300ceb123a0ae4544
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 Oct 27, 2026.

Transparency log

Security for zixy 0.4.3

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 14 files in this release have been uploaded with provenance metadata.

Select from 14 files

Attestation for zixy-0.4.3.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 Oct 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