Skip to main content

Build Status PyPI version

libqif

Install

pip install qif
  • Needs haswell or later CPU (AVX2)
  • python versions supported: 3.11 to 3.15
  • MacOS: 15 or later (x86_64 and arm64)

A sample program

from qif import *

def compute_bayes(C):
	pi = probab.uniform(C.shape[0])

	print("Channel:\n", C)
	print("Prior:\n", pi)

	print("Bayes vulnerability", measure.bayes_vuln.posterior(pi, C))
	print("Bayes mult-capacity", measure.bayes_vuln.mult_capacity(C))

compute_bayes(channel.randu(5))

# same, but using rational arithmetic
set_default_type(rat)

C = numpy.array([
	[rat(1,2), rat(1,4), rat(1,4)],
	[rat(1,6), rat(3,6), rat(2,6)],
	[rat(1,2), rat(1,2), rat(0)],
])
compute_bayes(C)

Documentation

The documentation is available at libqif.chatzi.org.

Use libqif with C++

See the installation instructions.

Metadata

Release files for qif 1.6.0

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

Built distributions (wheels)

Table of built distributions (wheels) for qif 1.6.0
File
qif-1.6.0-cp315-cp315-win_amd64.whl CPython 3.15 CPython 3.15 Windows x86-64 Details
qif-1.6.0-cp315-cp315-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.15 CPython 3.15 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details
qif-1.6.0-cp315-cp315-macosx_15_0_x86_64.whl CPython 3.15 CPython 3.15 macOS 15.0+ x86-64 Details
qif-1.6.0-cp315-cp315-macosx_15_0_arm64.whl CPython 3.15 CPython 3.15 macOS 15.0+ ARM64 Details
qif-1.6.0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details
qif-1.6.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details
qif-1.6.0-cp314-cp314-macosx_15_0_x86_64.whl CPython 3.14 CPython 3.14 macOS 15.0+ x86-64 Details
qif-1.6.0-cp314-cp314-macosx_15_0_arm64.whl CPython 3.14 CPython 3.14 macOS 15.0+ ARM64 Details
qif-1.6.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
qif-1.6.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details
qif-1.6.0-cp313-cp313-macosx_15_0_x86_64.whl CPython 3.13 CPython 3.13 macOS 15.0+ x86-64 Details
qif-1.6.0-cp313-cp313-macosx_15_0_arm64.whl CPython 3.13 CPython 3.13 macOS 15.0+ ARM64 Details
qif-1.6.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
qif-1.6.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details
qif-1.6.0-cp312-cp312-macosx_15_0_x86_64.whl CPython 3.12 CPython 3.12 macOS 15.0+ x86-64 Details
qif-1.6.0-cp312-cp312-macosx_15_0_arm64.whl CPython 3.12 CPython 3.12 macOS 15.0+ ARM64 Details
qif-1.6.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
qif-1.6.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details
qif-1.6.0-cp311-cp311-macosx_15_0_x86_64.whl CPython 3.11 CPython 3.11 macOS 15.0+ x86-64 Details
qif-1.6.0-cp311-cp311-macosx_15_0_arm64.whl CPython 3.11 CPython 3.11 macOS 15.0+ ARM64 Details

Total release size: 627.2 MB

Release files / qif-1.6.0-cp315-cp315-win_amd64.whl

Download URL qif-1.6.0-cp315-cp315-win_amd64.whl
Size 37.7 MB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
7ff09cccf80bb7404dda59a1ab253a49dfbe97f37969d676c7dbf21a5bfac134
BLAKE2b-256 checksum
How to use checksums
01add220016d4eb27e1d8e86d7c1c2b0df894152d20f8ed67cdc17c13659eeef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / qif-1.6.0-cp315-cp315-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL qif-1.6.0-cp315-cp315-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 41.9 MB
Tags CPython 3.15 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
e0e2796645acf499e60199c5e5840cdd5f8f637469e889363f159b400fb92b99
BLAKE2b-256 checksum
How to use checksums
9d7a60b8daaea97bdd762a0d1ef927fc404944aff33137e52f6c13e6480b1047
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / qif-1.6.0-cp315-cp315-macosx_15_0_x86_64.whl

Download URL qif-1.6.0-cp315-cp315-macosx_15_0_x86_64.whl
Size 24.7 MB
Tags CPython 3.15 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
c27b1285f21bbca970a9b04910c3a800ca72957abdf0d12ce4f27ecc33245fff
BLAKE2b-256 checksum
How to use checksums
d60318562330d41c0ddd01f5be695a3d143cbfe85cf084c4244feecedb30bd62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / qif-1.6.0-cp315-cp315-macosx_15_0_arm64.whl

Download URL qif-1.6.0-cp315-cp315-macosx_15_0_arm64.whl
Size 21.8 MB
Tags CPython 3.15 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
31c55225acb5ad97c22d94162cc1c7aa0288baa8b5cdc9f036483b6d98be5fa2
BLAKE2b-256 checksum
How to use checksums
dc9b6459c70fe48d0a635e021c34220338eb43e61b072b22d01522bc62215529
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / qif-1.6.0-cp314-cp314-win_amd64.whl

Download URL qif-1.6.0-cp314-cp314-win_amd64.whl
Size 37.7 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
6e4e884195956ea3a27a7a59009e5e0014ce986c70f0c18cbc4b41278b77a07c
BLAKE2b-256 checksum
How to use checksums
9d3539f8188c612ff4f3d95bd993d595cfc0bb930163b481addf33c2cd9b7ca6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / qif-1.6.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL qif-1.6.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 41.9 MB
Tags CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
0f23ebb5f79b9092cb8cf6cc214ea301602500419e8b87897e561df23957f397
BLAKE2b-256 checksum
How to use checksums
7cfa8eb4cbfc89b090a26cfc0890198b804498707e8ef38ce0b4ef0451b75dae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / qif-1.6.0-cp314-cp314-macosx_15_0_x86_64.whl

Download URL qif-1.6.0-cp314-cp314-macosx_15_0_x86_64.whl
Size 24.7 MB
Tags CPython 3.14 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
f6f3aa35707246bb41aeb45e52d10ee4ceb4a634753a0848aeaf1f0b0dce23a0
BLAKE2b-256 checksum
How to use checksums
212ff2b4596cab4778385d8269d68b02ae17a2a7fa250f78a9b901c900cb7f58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / qif-1.6.0-cp314-cp314-macosx_15_0_arm64.whl

Download URL qif-1.6.0-cp314-cp314-macosx_15_0_arm64.whl
Size 21.8 MB
Tags CPython 3.14 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
3f6a7d8951e7af3fa2faf7cb627bbe1f9d7d991aaf0321e6ea97dea796fccb6b
BLAKE2b-256 checksum
How to use checksums
7e70b77278efbee68f551590e260879785e1bbddf33e55aa36ca66ffed6e632a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / qif-1.6.0-cp313-cp313-win_amd64.whl

Download URL qif-1.6.0-cp313-cp313-win_amd64.whl
Size 36.7 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
03329d58ea1377939ec2ef24934370d3c2c3dd90db67eb94651e5d0354a404f2
BLAKE2b-256 checksum
How to use checksums
8e6d010aaf9a9ebedfc53a0d877d0d62d89ee725af942bc30bb0ac74574ae84a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / qif-1.6.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL qif-1.6.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 41.9 MB
Tags CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
296c55968c8e6eb5f2bd61fe07b5f4b9ecde3dd6fbb0b705755bec9e0e4cf6df
BLAKE2b-256 checksum
How to use checksums
827c27989d8b49c7fd2cfd67fada2420f319ef8dc06f178f9bc162073e8f1bc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / qif-1.6.0-cp313-cp313-macosx_15_0_x86_64.whl

Download URL qif-1.6.0-cp313-cp313-macosx_15_0_x86_64.whl
Size 24.7 MB
Tags CPython 3.13 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
250f850f0ff10f41f374e6d3dff6c46d37a06a1f0387a826f1cce4d1a97cf6c8
BLAKE2b-256 checksum
How to use checksums
f52f90832dce7445d565494a77b9a99364a5b4d213904bf378c1c224e607372e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / qif-1.6.0-cp313-cp313-macosx_15_0_arm64.whl

Download URL qif-1.6.0-cp313-cp313-macosx_15_0_arm64.whl
Size 21.8 MB
Tags CPython 3.13 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
d72cf805be6c047b2a557906ed6ee30c8c54131c0434dc530d4595309e5923cd
BLAKE2b-256 checksum
How to use checksums
bc603964e4b17ee452f389e12b839d1ff50cf47515c1ccd9344539b199c3c20e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / qif-1.6.0-cp312-cp312-win_amd64.whl

Download URL qif-1.6.0-cp312-cp312-win_amd64.whl
Size 36.7 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
3207d056ff7aeccf3db3cb609d01fa03397200729b355f3e098e708c39ea848d
BLAKE2b-256 checksum
How to use checksums
ab1c115ce804a88d647af120b6458a9dc8418b84c1a83dc31f60a0ea684e54dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / qif-1.6.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL qif-1.6.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 41.9 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
431c68d1b82bbc442d817e7268796309545ed7c9893e1bf8f53c7d2db18af87e
BLAKE2b-256 checksum
How to use checksums
8cb7cf448c54ed38aa695f337410b03b90da0806ed27df2b0210abcd09bffea8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / qif-1.6.0-cp312-cp312-macosx_15_0_x86_64.whl

Download URL qif-1.6.0-cp312-cp312-macosx_15_0_x86_64.whl
Size 24.7 MB
Tags CPython 3.12 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
e8119f3ba23492250ddccbbb3700b573d96397a2c9052a9d910357f735840c47
BLAKE2b-256 checksum
How to use checksums
29986aa694261ebe0ad05c63e4811417885882b06d16bf59bdbf720687c8bdfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / qif-1.6.0-cp312-cp312-macosx_15_0_arm64.whl

Download URL qif-1.6.0-cp312-cp312-macosx_15_0_arm64.whl
Size 21.8 MB
Tags CPython 3.12 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
e00788bc60309e805cfbbc7a7855f07ffe85e1777bc37157ec459a516583b9f2
BLAKE2b-256 checksum
How to use checksums
bf1b739d1fc1e13d078b0e81eb4d09ecc705f5bedef431dfdad73c518517f99b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / qif-1.6.0-cp311-cp311-win_amd64.whl

Download URL qif-1.6.0-cp311-cp311-win_amd64.whl
Size 36.7 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
280262ce044c4c316b679eac36b0a285c1f323baf92e77c24eb29aebe203da1d
BLAKE2b-256 checksum
How to use checksums
6487c4a6b52c6b4bb644b6efc8d74835ffa0de7a1a1d41c807b7d332be8b7d24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / qif-1.6.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL qif-1.6.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 41.9 MB
Tags CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
36deaa08a8492de9f5775f59e54abdd86db08e58180766a348ad82d299f975f5
BLAKE2b-256 checksum
How to use checksums
6a32fc3d2be9c505ed843a1e853a01ce9bc5f6d662c21348a1d691d1895445d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / qif-1.6.0-cp311-cp311-macosx_15_0_x86_64.whl

Download URL qif-1.6.0-cp311-cp311-macosx_15_0_x86_64.whl
Size 24.7 MB
Tags CPython 3.11 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
a41059544f87170ea9efbd79228667f192c235131741643f42b25f14f8713e8b
BLAKE2b-256 checksum
How to use checksums
e7a830aa61c8bbe94a37a5e33706f521fdabf84cc814dd5647d6699bf0e02a42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / qif-1.6.0-cp311-cp311-macosx_15_0_arm64.whl

Download URL qif-1.6.0-cp311-cp311-macosx_15_0_arm64.whl
Size 21.8 MB
Tags CPython 3.11 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
4fb1f8104c93d9d76fce70a1a63644847ac1dfe064b3f0356815b7f51af8887c
BLAKE2b-256 checksum
How to use checksums
ad9869c70506a6e7190188808d73947d33fc539d884ec9852784fcddeb6ef9ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for qif 1.6.0

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.

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