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.5.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.5.0
File
qif-1.5.0-cp315-cp315-win_amd64.whl CPython 3.15 CPython 3.15 Windows x86-64 Details
qif-1.5.0-cp315-cp315-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.15 CPython 3.15 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details
qif-1.5.0-cp315-cp315-macosx_15_0_x86_64.whl CPython 3.15 CPython 3.15 macOS 15.0+ x86-64 Details
qif-1.5.0-cp315-cp315-macosx_15_0_arm64.whl CPython 3.15 CPython 3.15 macOS 15.0+ ARM64 Details
qif-1.5.0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details
qif-1.5.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.5.0-cp314-cp314-macosx_15_0_x86_64.whl CPython 3.14 CPython 3.14 macOS 15.0+ x86-64 Details
qif-1.5.0-cp314-cp314-macosx_15_0_arm64.whl CPython 3.14 CPython 3.14 macOS 15.0+ ARM64 Details
qif-1.5.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
qif-1.5.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.5.0-cp313-cp313-macosx_15_0_x86_64.whl CPython 3.13 CPython 3.13 macOS 15.0+ x86-64 Details
qif-1.5.0-cp313-cp313-macosx_15_0_arm64.whl CPython 3.13 CPython 3.13 macOS 15.0+ ARM64 Details
qif-1.5.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
qif-1.5.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.5.0-cp312-cp312-macosx_15_0_x86_64.whl CPython 3.12 CPython 3.12 macOS 15.0+ x86-64 Details
qif-1.5.0-cp312-cp312-macosx_15_0_arm64.whl CPython 3.12 CPython 3.12 macOS 15.0+ ARM64 Details
qif-1.5.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
qif-1.5.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.5.0-cp311-cp311-macosx_15_0_x86_64.whl CPython 3.11 CPython 3.11 macOS 15.0+ x86-64 Details
qif-1.5.0-cp311-cp311-macosx_15_0_arm64.whl CPython 3.11 CPython 3.11 macOS 15.0+ ARM64 Details

Total release size: 601.1 MB

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

Download URL qif-1.5.0-cp315-cp315-win_amd64.whl
Size 36.7 MB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
0cdc5227ee3618ed49b5e87966305d48aeab83ca81f0ab2bae7ac1795518f446
BLAKE2b-256 checksum
How to use checksums
ef63cbf66cf73883ab6b70c8a524c23de8702d617d118bf15eee728a2b747bc9
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.5.0-cp315-cp315-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL qif-1.5.0-cp315-cp315-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 40.4 MB
Tags CPython 3.15 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
2c88653b4e8db48be7d98499eadccd5c8a589a4c5b5a2d104b5dbbc342c7a1c7
BLAKE2b-256 checksum
How to use checksums
8595fa35892ab186c67a3ec1aa80caf3d4c23977d1fdcc3338d8e7d8de9ab5ae
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.5.0-cp315-cp315-macosx_15_0_x86_64.whl

Download URL qif-1.5.0-cp315-cp315-macosx_15_0_x86_64.whl
Size 23.1 MB
Tags CPython 3.15 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
e939d99cc1e746b94804e39262d6cfa66151dcd9a3d3eddab6f3bc0613d25ab5
BLAKE2b-256 checksum
How to use checksums
3bf7a5ae2ad8ce2b323d64933a6482f45f9936d420414769810445dc7cf89eed
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.5.0-cp315-cp315-macosx_15_0_arm64.whl

Download URL qif-1.5.0-cp315-cp315-macosx_15_0_arm64.whl
Size 20.5 MB
Tags CPython 3.15 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
928221f5342a04950f0f9506f3af499e83fbb1d7038801411a686ac78f3356ef
BLAKE2b-256 checksum
How to use checksums
797c2b3f146fba36b7a0bd08bf82264e29d6c70b6aae7c132ca128ca67830809
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.5.0-cp314-cp314-win_amd64.whl

Download URL qif-1.5.0-cp314-cp314-win_amd64.whl
Size 36.7 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
77b886ec23b2947727a8dc193420b84a882a573738e0615cd323f9c88de9f3aa
BLAKE2b-256 checksum
How to use checksums
9f6d205c8d952d4c8bb80212ee6b12f81da1a46768380e0c6122a4b411433a6a
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.5.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL qif-1.5.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 40.4 MB
Tags CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
420790dae3c05882893813563681c317d28f486aed79046bfed78ba5c69364e3
BLAKE2b-256 checksum
How to use checksums
86eb5d69cb68dbcbae27ffa00f7f91f5eb5656ab5a2aa1575b131921021b6195
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.5.0-cp314-cp314-macosx_15_0_x86_64.whl

Download URL qif-1.5.0-cp314-cp314-macosx_15_0_x86_64.whl
Size 23.1 MB
Tags CPython 3.14 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
4d84d4cfb790a23a03efc10f2436da2aef42fd73ed8d713adae0a1fde53f37d3
BLAKE2b-256 checksum
How to use checksums
80cd18d36189ddc6b238d1459b8efa141bc58bd9d68c414609fe3d1b542462f3
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.5.0-cp314-cp314-macosx_15_0_arm64.whl

Download URL qif-1.5.0-cp314-cp314-macosx_15_0_arm64.whl
Size 20.5 MB
Tags CPython 3.14 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
eba5eab886915d16ca46f5d2bc5dad0bfb82846f21d3adf2d21866c67baa28bd
BLAKE2b-256 checksum
How to use checksums
5f2f9a719f2021da35a1a7fa1851c89e3d0cd5197ca2903a7c263d8c552fa5c6
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.5.0-cp313-cp313-win_amd64.whl

Download URL qif-1.5.0-cp313-cp313-win_amd64.whl
Size 35.8 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
f54030d3d237dd4544505031fc8161ce61fa25f23466085f129e07a686876766
BLAKE2b-256 checksum
How to use checksums
9fc3f93e69c91b0c6d77e6d27b1263d37949338f16f1c0b2c85d9ad24223a043
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.5.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL qif-1.5.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 40.4 MB
Tags CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
b1a03255bbc2edbe88a919a6b01ac5c0a95bee217d177b96333d394904430e54
BLAKE2b-256 checksum
How to use checksums
26ae9ad70bae7c88fedf5a535abb2a0b2f0382959719bcdabb73a375ec03b849
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.5.0-cp313-cp313-macosx_15_0_x86_64.whl

Download URL qif-1.5.0-cp313-cp313-macosx_15_0_x86_64.whl
Size 23.1 MB
Tags CPython 3.13 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
b28f91709f519873562fbc8fe03521d8a719fee8fcf8354f182bcfe518b6b52d
BLAKE2b-256 checksum
How to use checksums
f9bdfff2a9a964fc94f2009440558bf7ae39a9c81a2b17fd6d2b3336c77a211b
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.5.0-cp313-cp313-macosx_15_0_arm64.whl

Download URL qif-1.5.0-cp313-cp313-macosx_15_0_arm64.whl
Size 20.5 MB
Tags CPython 3.13 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
3453e721964c1b3773ea028f1c1c2ffddada7d30322bc24fee54972c82878ffb
BLAKE2b-256 checksum
How to use checksums
673b06de583947e297454edffa8472bfbd9d3b2ba671fa72b9e2212582c0765e
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.5.0-cp312-cp312-win_amd64.whl

Download URL qif-1.5.0-cp312-cp312-win_amd64.whl
Size 35.8 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
9aba93cf06353745080ef8467d7403769670a2ca7d0c037b114ce266666355be
BLAKE2b-256 checksum
How to use checksums
8d26b90da5024897f0820ff0b66058ac75db9bb60a81f97fa11802f9d367097b
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.5.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL qif-1.5.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 40.4 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
69b33e89451317acd0b5f479eaec62a72fa5a5767a268439b7e2e50ab6793bdf
BLAKE2b-256 checksum
How to use checksums
57d2003e1b232456e7cb5eea473f82fe052adc8f0dd558ae66c3772f6677a748
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.5.0-cp312-cp312-macosx_15_0_x86_64.whl

Download URL qif-1.5.0-cp312-cp312-macosx_15_0_x86_64.whl
Size 23.1 MB
Tags CPython 3.12 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
b33db85c0d87e2eb383c12d1743d8377ff5042cade4a1ffc5621db806e28f76b
BLAKE2b-256 checksum
How to use checksums
1698422f3bfc318d4e5fc6177cfbd7bc1a68deec85b592b4bcab896d28a08ca7
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.5.0-cp312-cp312-macosx_15_0_arm64.whl

Download URL qif-1.5.0-cp312-cp312-macosx_15_0_arm64.whl
Size 20.5 MB
Tags CPython 3.12 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
db54353c6306d74aef8bf551e768907463f1fe0594093834b94cf0cc5203a30e
BLAKE2b-256 checksum
How to use checksums
787287aff78c78f77cffa6e1d1fc4f793ffe7d2ef1630816538a5d4e1790bfa0
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.5.0-cp311-cp311-win_amd64.whl

Download URL qif-1.5.0-cp311-cp311-win_amd64.whl
Size 35.8 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
54645bdc4bf9972e7bb165705d2431cf26cf99cf64789578badf393af2faf78c
BLAKE2b-256 checksum
How to use checksums
ae78d65933454fc3a9bf456bcdc91ba61f2c93dee77af65a4fbbe24f99713f9b
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.5.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL qif-1.5.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 40.4 MB
Tags CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
7cdde5ebf7d20e2207593aada64131f25d0e00f1b1d6fb8d55015f00ea617344
BLAKE2b-256 checksum
How to use checksums
115f581b504356ff4202f6061eb056e16d2e08b4256609070bb311781948f15b
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.5.0-cp311-cp311-macosx_15_0_x86_64.whl

Download URL qif-1.5.0-cp311-cp311-macosx_15_0_x86_64.whl
Size 23.1 MB
Tags CPython 3.11 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
6a34d63834a3f15fe301347a6779d1c536b464acc97e1cc98eee34f3a4e96ded
BLAKE2b-256 checksum
How to use checksums
06d7f5c403e65ceef038e7f5837937f9aa6d0a402584e675b62b8e3c2ab36b0b
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.5.0-cp311-cp311-macosx_15_0_arm64.whl

Download URL qif-1.5.0-cp311-cp311-macosx_15_0_arm64.whl
Size 20.5 MB
Tags CPython 3.11 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
590e260189d9aeefa34682cad8b12dd6b2a3e20b6f6136960b4f0c5371cc49c2
BLAKE2b-256 checksum
How to use checksums
4a9ff847bbb9a2fca13ecd1d937ed4007653b5aa31c60c20c13a2b7abc0d82e2
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.5.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.

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