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)

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

A list of methods provided by qif is available here.

Use libqif with C++

See the installation instructions.

Metadata

Release files for qif 1.3.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.3.0
File
qif-1.3.0-cp315-cp315-win_amd64.whl CPython 3.15 CPython 3.15 Windows x86-64 Details
qif-1.3.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.3.0-cp315-cp315-macosx_15_0_x86_64.whl CPython 3.15 CPython 3.15 macOS 15.0+ x86-64 Details
qif-1.3.0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details
qif-1.3.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.3.0-cp314-cp314-macosx_15_0_x86_64.whl CPython 3.14 CPython 3.14 macOS 15.0+ x86-64 Details
qif-1.3.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
qif-1.3.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.3.0-cp313-cp313-macosx_15_0_x86_64.whl CPython 3.13 CPython 3.13 macOS 15.0+ x86-64 Details
qif-1.3.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
qif-1.3.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details
qif-1.3.0-cp312-cp312-macosx_15_0_x86_64.whl CPython 3.12 CPython 3.12 macOS 15.0+ x86-64 Details
qif-1.3.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
qif-1.3.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details
qif-1.3.0-cp311-cp311-macosx_15_0_x86_64.whl CPython 3.11 CPython 3.11 macOS 15.0+ x86-64 Details

Total release size: 295.5 MB

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

Download URL qif-1.3.0-cp315-cp315-win_amd64.whl
Size 18.1 MB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
91c5c08db5b27ab30d86609dccdac128132464e6d4cbdbf3b11d394e4bf2d343
BLAKE2b-256 checksum
How to use checksums
380b712c3e12c46e83cc09520b147fe8dcd6b53bc6896f86f278b4d26e09f537
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL qif-1.3.0-cp315-cp315-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 27.5 MB
Tags CPython 3.15 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
01662205f7d353ba83c8b44f4d163efbf61f0fac43ec0017670ff08799741a5d
BLAKE2b-256 checksum
How to use checksums
b4209525bba299336b4fa02cd6f51dfbc9da89856fd4acd5915b05b5dde44d39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL qif-1.3.0-cp315-cp315-macosx_15_0_x86_64.whl
Size 13.7 MB
Tags CPython 3.15 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
5893aae9e816c6f087ff1be23af84c0ddd36a3362b84427ee82b9de116a173f3
BLAKE2b-256 checksum
How to use checksums
160a8810c79c81e96a91fe65f88a1d5b3aae4d3723b9ad73aa1316ba68ec786a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL qif-1.3.0-cp314-cp314-win_amd64.whl
Size 18.1 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
2067fea8da1d1743e315d3f1046036e181ccf93c72227fea8760092072875651
BLAKE2b-256 checksum
How to use checksums
711c1ab0f8537ad9a6be2c28bf7963a08c969fc6e9343bfe250de32547f13bb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL qif-1.3.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 27.5 MB
Tags CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
095c6e01c61fe7354ceedc374c19c00d154411387cae1461d8d80c2f756c58c3
BLAKE2b-256 checksum
How to use checksums
4ee28f74e756755b03b2037e030d51e96b2c06025adb28c0ddd5e7045f8b78df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL qif-1.3.0-cp314-cp314-macosx_15_0_x86_64.whl
Size 13.7 MB
Tags CPython 3.14 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
bace6f299887b1144f6581db8000a49ac772fdb95e2a50bf0de5215d02ec1048
BLAKE2b-256 checksum
How to use checksums
e48747d1b038a2a6f34ca7d2eec24acf27beb076fc72724f07104527b73b1043
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL qif-1.3.0-cp313-cp313-win_amd64.whl
Size 17.8 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
18a1be4181e96a55b9ed403dde06d5db5d6f8c0bfa93f3ba828e7800136c01f2
BLAKE2b-256 checksum
How to use checksums
9d2aff0144d8840f6fbb3e709c6b1d607c4eb74ee528547df9aa601eade00ed5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL qif-1.3.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 27.5 MB
Tags CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
1e637c49ce636016a727f86ea4818baeb70f07ade9556825a8c44a17c8c4aff3
BLAKE2b-256 checksum
How to use checksums
f12cdaf2f5a50bb97a55ea8f0bdddf68382d1a1da8f2c5b3bc464f1fe6ba6526
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL qif-1.3.0-cp313-cp313-macosx_15_0_x86_64.whl
Size 13.7 MB
Tags CPython 3.13 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
d539abbe63ec4a9fe9bf718d34299f8f2e517105ba3e643d8f0ff0c0e57486de
BLAKE2b-256 checksum
How to use checksums
e5fbdb6b642965ee322bb555ea0b9acfaae51a3a88a6c5d798335bb245809cd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL qif-1.3.0-cp312-cp312-win_amd64.whl
Size 17.8 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
742f64f9ad7855eee043a140fed95f215225879c9099f68dc9897f650e668aa3
BLAKE2b-256 checksum
How to use checksums
4a53c5245654536307499d6fca41b0ba4fac131082a896b5dc92da3b7492f818
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL qif-1.3.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 27.5 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
44b8c7e7356c52da540a4b3d333533dfe3bf13c306cfa96573d21240f0101c4c
BLAKE2b-256 checksum
How to use checksums
8e8163e3595185f75c76c71d96b544a4270de1fdd6b6a4ff893b0c3ddb991a43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL qif-1.3.0-cp312-cp312-macosx_15_0_x86_64.whl
Size 13.7 MB
Tags CPython 3.12 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
a47372719aa78c237711019164009c053b54706e7fd91f589949825b54d807b8
BLAKE2b-256 checksum
How to use checksums
17762c6311b5ad3bd3b43ad4c9d0ae19306960ecedd5236676d0c8cbb416c4e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL qif-1.3.0-cp311-cp311-win_amd64.whl
Size 17.8 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
1c97b448692a6171c13fb4d110c1f6544d3071d8b5ba612a2e510c1f0b3ef877
BLAKE2b-256 checksum
How to use checksums
bf2e8bae7498150ee364b7f18f508084d5ed066105d84ff350ae58c2a7eb6920
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL qif-1.3.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 27.5 MB
Tags CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
633aa32bad3bc03fc3c607603b67b0a2e3cce5c96c3efd547115d9a910c857e4
BLAKE2b-256 checksum
How to use checksums
7bb256b593eb57392ad501b29fa457617a7d916057466c2f6bc21847effe8e15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL qif-1.3.0-cp311-cp311-macosx_15_0_x86_64.whl
Size 13.7 MB
Tags CPython 3.11 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
4e88628a66374fad60dbc5d1ff96068a744911b872a6d90351575993b9b3327c
BLAKE2b-256 checksum
How to use checksums
a731def8edf1a5a7c59b610963beaf31df6d0bc617b109e9be5855dbc2c72871
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for qif 1.3.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