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

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.4
File Size Uploaded Provenance Actions
zixy-0.4.4.tar.gz 616.2 kB With provenance Details for zixy-0.4.4.tar.gz

Built distributions (wheels)

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

Total release size: 23.5 MB

Release files / zixy-0.4.4.tar.gz

Download URL zixy-0.4.4.tar.gz
Size 616.2 kB
Tags Source
SHA-256 checksum
How to use checksums
28ef9d2866d03015f0e8b455f63a1e60f43807154bf3bd42f1e28bfc3cc0d3db
BLAKE2b-256 checksum
How to use checksums
74a235482415a0925d17edca8856360513c31a2ee145e49c1f79b122ce024519
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 23, 2026.

Transparency log

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

Download URL zixy-0.4.4-cp310-abi3-win_amd64.whl
Size 1.4 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
b66c1eca74a8522d8137d1a0321803783e992165d613471f2389e595a361c6a8
BLAKE2b-256 checksum
How to use checksums
458e65128f62994283cfe06f6d5d60f11966a04007f245729727bbe522cd1861
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 23, 2026.

Transparency log

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

Download URL zixy-0.4.4-cp310-abi3-win32.whl
Size 1.3 MB
Tags CPython 3.10 Windows x86-32 abi3
SHA-256 checksum
How to use checksums
8693c2b1ab90228e49303a16b6907abe59873a491aff5829e9cc65465338cb80
BLAKE2b-256 checksum
How to use checksums
ecb0fe416d7250bcf1a5826447812adeff9f1a1cfc6d9bbcf9c1bde647f8a718
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 23, 2026.

Transparency log

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

Download URL zixy-0.4.4-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
623ca19675574e47f8242efd5a92d74ebd4da144efb0f7de5b85027927c8e163
BLAKE2b-256 checksum
How to use checksums
9f9216246921528b94ed24f8cbd831d77b00a969a032e9bf8b98d957bb0af7b8
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 23, 2026.

Transparency log

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

Download URL zixy-0.4.4-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
c48c852376e9a92b2ea2a7f753388519ee983d77219f546b8c0c0664a8e5697e
BLAKE2b-256 checksum
How to use checksums
70e1401a597b4e9f1d3f3a6d45e975bdea01c07bf6ebba24177184a8c9bc8a95
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 23, 2026.

Transparency log

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

Download URL zixy-0.4.4-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
1179fec65716eb3af13fa3052df818c90be25c3ba81844612c9395820b37c693
BLAKE2b-256 checksum
How to use checksums
fe9602f6211bd0cdd4346170d49ee6fa39831d1d2b08dc76833469f20570b392
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 23, 2026.

Transparency log

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

Download URL zixy-0.4.4-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
208ec1b2ac62b3504c4a85ff974848e908d7a51ac3d251acf9c99e76256897f4
BLAKE2b-256 checksum
How to use checksums
d5efa04da37a247d3018ee219218e9430eadcde3043e9c4e0a09be3a4c4e908b
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 23, 2026.

Transparency log

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

Download URL zixy-0.4.4-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
38db4dfc6ae59921c3e44ae9d16a3250de788ddcd735c4de8e75dae37df30a2c
BLAKE2b-256 checksum
How to use checksums
6d6fdc97b5b7f8c8c6ffc32c65413687346d9e7462e81cba3de4de53839705aa
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 23, 2026.

Transparency log

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

Download URL zixy-0.4.4-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
c678a6d6452e14d394e90bcfb9af7eb19c36c621889a0c62600f2dd7b02196cc
BLAKE2b-256 checksum
How to use checksums
a318c62b5d66108aaa4092aa93d14b6b785d6452996c8df90912b6d55a4eb158
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 23, 2026.

Transparency log

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

Download URL zixy-0.4.4-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
44e790684a772e8156c2c872373942dd58d960cbb18abab214e5bf01ad1f1b25
BLAKE2b-256 checksum
How to use checksums
622c8644378851f3a9880d146a6cde619b2d425260d1f6c6329aeef4f069f256
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 23, 2026.

Transparency log

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

Download URL zixy-0.4.4-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
d8cdc13d94df0b051079e871d415362225647e1cdcba78c73fc9ce4f5b05d196
BLAKE2b-256 checksum
How to use checksums
20a69f740732e5cdfa1cb28149e7010492f7dc64957df94b5517236ed16ed3af
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 23, 2026.

Transparency log

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

Download URL zixy-0.4.4-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
7ada36f96d3d4a99c3d4121d774d398a959e951f02cf343b71f71c246271f203
BLAKE2b-256 checksum
How to use checksums
77bc2082ff17ca3e678e04301db7af9c128d65de214864c93c3717f9760e0111
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 23, 2026.

Transparency log

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

Download URL zixy-0.4.4-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
e2c2cc1509213e59fd796ea2bb802518fc90147eeb6e800dd11fb3ccae2a0bfa
BLAKE2b-256 checksum
How to use checksums
c59e121d7bf485b9c04b8fa886eab62ed1b95aadea9d35e013d314d35ac32396
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 23, 2026.

Transparency log

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

Download URL zixy-0.4.4-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
f99b56fa5fce0c1e850cf0f191a98496a26a826c156e5557166364e1614ec22a
BLAKE2b-256 checksum
How to use checksums
62412c2b027db1f3ba3dc3d1d3d1b95bd9a8a10f59ccb7bc70dbc7db925870f3
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 23, 2026.

Transparency log

Security for zixy 0.4.4

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.4.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 23, 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