libqif
Install
pip install qif
- Needs
haswellor later CPU (AVX2) pythonversions 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
A list of methods provided by qif is available here.
Use libqif with C++
See the installation instructions.
Metadata
Release files for qif 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| qif-1.4.0-cp315-cp315-win_amd64.whl | CPython 3.15 | CPython 3.15 | Windows x86-64 | Details |
| qif-1.4.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.4.0-cp315-cp315-macosx_15_0_x86_64.whl | CPython 3.15 | CPython 3.15 | macOS 15.0+ x86-64 | Details |
| qif-1.4.0-cp315-cp315-macosx_15_0_arm64.whl | CPython 3.15 | CPython 3.15 | macOS 15.0+ ARM64 | Details |
| qif-1.4.0-cp314-cp314-win_amd64.whl | CPython 3.14 | CPython 3.14 | Windows x86-64 | Details |
| qif-1.4.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.4.0-cp314-cp314-macosx_15_0_x86_64.whl | CPython 3.14 | CPython 3.14 | macOS 15.0+ x86-64 | Details |
| qif-1.4.0-cp314-cp314-macosx_15_0_arm64.whl | CPython 3.14 | CPython 3.14 | macOS 15.0+ ARM64 | Details |
| qif-1.4.0-cp313-cp313-win_amd64.whl | CPython 3.13 | CPython 3.13 | Windows x86-64 | Details |
| qif-1.4.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.4.0-cp313-cp313-macosx_15_0_x86_64.whl | CPython 3.13 | CPython 3.13 | macOS 15.0+ x86-64 | Details |
| qif-1.4.0-cp313-cp313-macosx_15_0_arm64.whl | CPython 3.13 | CPython 3.13 | macOS 15.0+ ARM64 | Details |
| qif-1.4.0-cp312-cp312-win_amd64.whl | CPython 3.12 | CPython 3.12 | Windows x86-64 | Details |
| qif-1.4.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.4.0-cp312-cp312-macosx_15_0_x86_64.whl | CPython 3.12 | CPython 3.12 | macOS 15.0+ x86-64 | Details |
| qif-1.4.0-cp312-cp312-macosx_15_0_arm64.whl | CPython 3.12 | CPython 3.12 | macOS 15.0+ ARM64 | Details |
| qif-1.4.0-cp311-cp311-win_amd64.whl | CPython 3.11 | CPython 3.11 | Windows x86-64 | Details |
| qif-1.4.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.4.0-cp311-cp311-macosx_15_0_x86_64.whl | CPython 3.11 | CPython 3.11 | macOS 15.0+ x86-64 | Details |
| qif-1.4.0-cp311-cp311-macosx_15_0_arm64.whl | CPython 3.11 | CPython 3.11 | macOS 15.0+ ARM64 | Details |
Total release size: 579.8 MB
Release files / qif-1.4.0-cp315-cp315-win_amd64.whl
| Download URL | qif-1.4.0-cp315-cp315-win_amd64.whl |
|---|---|
| Size | 32.6 MB |
| Tags | CPython 3.15 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
52a877904f9d5e55995fbbafb6586a07973ee8fbf9aeac20a4024c4d1fb0432a
|
|
BLAKE2b-256 checksum How to use checksums |
b89c265d370c758643497df8a5cf4707192f2a237ca21fc82f63eb4d7c2a3f81
|
| 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.4.0-cp315-cp315-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | qif-1.4.0-cp315-cp315-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 40.3 MB |
| Tags | CPython 3.15 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
f69c3d1760ece2008b9deeee2d1238115ea2b6e7f5224510bd26e2a518be4880
|
|
BLAKE2b-256 checksum How to use checksums |
0d31a9a81b42d34e2de0995b4c41a0c8982b8611e010734d9f81d83f6436d3f6
|
| 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.4.0-cp315-cp315-macosx_15_0_x86_64.whl
| Download URL | qif-1.4.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 |
28a256375b4acf46fafedad19011e910e0fa179c7f19661cd34633518f75aa26
|
|
BLAKE2b-256 checksum How to use checksums |
20b8e3d16320a10cbda1fec0b75097824f915be046585f5d7ecd2cfb39e95de9
|
| 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.4.0-cp315-cp315-macosx_15_0_arm64.whl
| Download URL | qif-1.4.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 |
1a1b38a6296d02218e75da9abf6e15ef098f052d06aa2438fae062a7c3537627
|
|
BLAKE2b-256 checksum How to use checksums |
2226e2c047b0bc3819d140df76720558e974395fa9e58315f15d033b609d62e5
|
| 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.4.0-cp314-cp314-win_amd64.whl
| Download URL | qif-1.4.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 32.6 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
5aca4d975ec0bf1cf95f3fc45800ef3885b587ab7e41073598c1c49b683de180
|
|
BLAKE2b-256 checksum How to use checksums |
b3e0ae524af6f37d6acd9372142dc5dbfd8876c0d6a03ed8ff9c22e7f1ad350c
|
| 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.4.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | qif-1.4.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 40.3 MB |
| Tags | CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
b81371babf663a0bd6bd4aceda868eed0cb137e955804c92a2f7e5b1a2e1dca8
|
|
BLAKE2b-256 checksum How to use checksums |
fafe3419f5c4a07a5b845b54ba19410c6a8234ebd38e2993668d5eb6ddcbf582
|
| 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.4.0-cp314-cp314-macosx_15_0_x86_64.whl
| Download URL | qif-1.4.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 |
55f228f9fed475ba672394065a3f77e77508585d12dc894559c3eb149b4adf53
|
|
BLAKE2b-256 checksum How to use checksums |
f01f16d64341edbb8149bd9753cd853cace15a751500f9265778b6cc673ace8f
|
| 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.4.0-cp314-cp314-macosx_15_0_arm64.whl
| Download URL | qif-1.4.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 |
4f97f9b2da655805fa41313a20400d7a17054c27c25bd08e597c86b2809b7740
|
|
BLAKE2b-256 checksum How to use checksums |
f67169a5f6a16abaa8653cc47e918870f694a1040bf600efcc91ce38db44c366
|
| 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.4.0-cp313-cp313-win_amd64.whl
| Download URL | qif-1.4.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 31.7 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ea24f02deb02587e9c55bcda599e7cd89599be037c79d809cf595855b9b85ac6
|
|
BLAKE2b-256 checksum How to use checksums |
2c8c049cb901f20a4628dcba4e132580cc936287fb580d3f1ad5356a51263ef7
|
| 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.4.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | qif-1.4.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 40.3 MB |
| Tags | CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
9a47a4c71f7a64f51d8563c6541e46a4e26b765bd688bf8252de6d8613fe657c
|
|
BLAKE2b-256 checksum How to use checksums |
25b4691e6759c131cb77fe66343d9fd16b6ff0bf53aedb0446d5e998ee8444da
|
| 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.4.0-cp313-cp313-macosx_15_0_x86_64.whl
| Download URL | qif-1.4.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 |
b0138cf1d23b101d2d54682a370eafaf10954836127a79e111addbab86a03d28
|
|
BLAKE2b-256 checksum How to use checksums |
1c63962368f5a0fc406bb2168177e1e216d531f5a954537371eea921ca7bffab
|
| 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.4.0-cp313-cp313-macosx_15_0_arm64.whl
| Download URL | qif-1.4.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 |
3722ccec921616fc54a8693db0b6fb40fa00e8c79df634ba20802aedc56578d6
|
|
BLAKE2b-256 checksum How to use checksums |
746c0ca3cdb683a46ba89f20bede4a4b3caa0e3432f4bbbd01734e7ce2f36605
|
| 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.4.0-cp312-cp312-win_amd64.whl
| Download URL | qif-1.4.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 31.7 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
4f20ace2b5fcc681bf337ccee598d6ede76e1112f672fac9a3c7c95c3bbcabb0
|
|
BLAKE2b-256 checksum How to use checksums |
bd22d9d09adac73db364b5a5f7a7f40e490077ba6f0f6661ae0fda9f3b572efb
|
| 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.4.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | qif-1.4.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 40.3 MB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
564f007527ab33dac8a98930886d50c74917a36d80f0218a250379c76cf2e9f7
|
|
BLAKE2b-256 checksum How to use checksums |
3c5f43bf3251ecc62e1189e6e631d209fb43188637cc67cec63ae0a6c898f05f
|
| 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.4.0-cp312-cp312-macosx_15_0_x86_64.whl
| Download URL | qif-1.4.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 |
a7f5e4fab47456af00d92f2b33684117b1db02a4272ba89ddc00b0892082d164
|
|
BLAKE2b-256 checksum How to use checksums |
a5eab83ec878e5140c4a08221bce4aa1c120b2f620a24471bfdd20eb5154658f
|
| 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.4.0-cp312-cp312-macosx_15_0_arm64.whl
| Download URL | qif-1.4.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 |
52562835a8773ef19f44cdcf44b0a58e01ee0d65e1c9870c287ee96a8d7555ba
|
|
BLAKE2b-256 checksum How to use checksums |
e80049ec9d5c345ea982b6d20def1913210ea79dd9d54651e82a91d648a776b6
|
| 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.4.0-cp311-cp311-win_amd64.whl
| Download URL | qif-1.4.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 31.7 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
4ce2562be51c06cb7d8aa37e8da1411add1ebe2e667f6b2e513c255bc2423645
|
|
BLAKE2b-256 checksum How to use checksums |
c38796ec084de1320cc3fa47e2c99ac5873be3184ce3ce3aecfa9fbbe1e442eb
|
| 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.4.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | qif-1.4.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 40.3 MB |
| Tags | CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
15a025c2068efb70c94d2e278e90d3e82485e0aef4be5af5d8dda29692890d36
|
|
BLAKE2b-256 checksum How to use checksums |
a87f95cd26809acfc5220cae7abcd57f795ffa423c82ac4256f9435844356dd0
|
| 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.4.0-cp311-cp311-macosx_15_0_x86_64.whl
| Download URL | qif-1.4.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 |
ed292c5f26abd7a8fe54b095e4dbfb576a839bdd1536cbb6b4ec9e99f3206fa0
|
|
BLAKE2b-256 checksum How to use checksums |
35496361a529d13e1ec0089092224b63e01b8d2bf41c21769358215f54dd1efc
|
| 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.4.0-cp311-cp311-macosx_15_0_arm64.whl
| Download URL | qif-1.4.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 |
20cd29b780ec1a6752439ab2b9c326649224dd3599fbaf6e0f5dd2ef11992672
|
|
BLAKE2b-256 checksum How to use checksums |
555aa82040f8e020e97f27bb14941c10d89c3d4452805c927a02285dee94ebea
|
| 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.4.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.