Skip to main content

Quantitative Information Flow library

Project description

Build Status PyPI version

libqif

Install

pip install qif
  • Needs python >= 3.6 and a sandybridge or later CPU
  • On linux pip >= 19 is needed (make sure to pip install -U pip)

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
qif.set_default_type(qif.rat)

C = np.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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

qif-1.1.10-cp39-cp39-win_amd64.whl (17.6 MB view details)

Uploaded CPython 3.9 Windows x86-64

qif-1.1.10-cp39-cp39-manylinux2010_x86_64.whl (20.8 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

qif-1.1.10-cp39-cp39-macosx_10_9_x86_64.whl (13.0 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

qif-1.1.10-cp38-cp38-win_amd64.whl (17.6 MB view details)

Uploaded CPython 3.8 Windows x86-64

qif-1.1.10-cp38-cp38-manylinux2010_x86_64.whl (20.8 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

qif-1.1.10-cp38-cp38-macosx_10_9_x86_64.whl (13.0 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

qif-1.1.10-cp37-cp37m-win_amd64.whl (17.6 MB view details)

Uploaded CPython 3.7m Windows x86-64

qif-1.1.10-cp37-cp37m-manylinux2010_x86_64.whl (20.9 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

qif-1.1.10-cp37-cp37m-macosx_10_9_x86_64.whl (13.0 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

qif-1.1.10-cp36-cp36m-win_amd64.whl (17.6 MB view details)

Uploaded CPython 3.6m Windows x86-64

qif-1.1.10-cp36-cp36m-manylinux2010_x86_64.whl (20.9 MB view details)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

qif-1.1.10-cp36-cp36m-macosx_10_9_x86_64.whl (13.0 MB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

File details

Details for the file qif-1.1.10-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: qif-1.1.10-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 17.6 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.7

File hashes

Hashes for qif-1.1.10-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0d642c8580b78cee33ae5d813e90e28d2ca50bf5f9a3f7a74d236f66f9726523
MD5 11be44b944ec7fdc83ad6b3835c6815a
BLAKE2b-256 fb425bf428cdd5cb1c1602ac2230cfea00c4783afd177b1e7d82af383e77c8d0

See more details on using hashes here.

File details

Details for the file qif-1.1.10-cp39-cp39-manylinux2010_x86_64.whl.

File metadata

  • Download URL: qif-1.1.10-cp39-cp39-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 20.8 MB
  • Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.7

File hashes

Hashes for qif-1.1.10-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 25ad9068cbab26b9cb68323a90d5dd987a259d6cf8079fcdc06f5fad73f79c34
MD5 6faf7f47b8cb7ffeac98881f46222747
BLAKE2b-256 dad4e7c4d30f002e9ce8029d3a07427249363af887c2d6d1b8cb07f1ee3c84c1

See more details on using hashes here.

File details

Details for the file qif-1.1.10-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: qif-1.1.10-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 13.0 MB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.7

File hashes

Hashes for qif-1.1.10-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 14147551b4a19837ca22c1c0a17c684ee36e144745d1bcf16d2d50535c4733a1
MD5 e3017841c1f8bda44a7e24cfb3bdd60a
BLAKE2b-256 f9d80a380ac812f98e6e344d32abc5a39081cd3159e3cefe6d69e32b8a090209

See more details on using hashes here.

File details

Details for the file qif-1.1.10-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: qif-1.1.10-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 17.6 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.7

File hashes

Hashes for qif-1.1.10-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a80ace0e6ecc7ac79d10bc7f2b23a9a3b908e4aaf13ea10dc878b75e67302376
MD5 7d04c05a4f92859b551683e91d625d2b
BLAKE2b-256 2dc456305217a14f2cca7049feb50162f67b9b2aef1b2ae5e960f243e74e1a05

See more details on using hashes here.

File details

Details for the file qif-1.1.10-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: qif-1.1.10-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 20.8 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.7

File hashes

Hashes for qif-1.1.10-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 fb07e6e7edb2485874e2a50a44202fbcc31774350643446b846d9d0c3fe5122e
MD5 657200ec6731a38550a3cc82af19c14f
BLAKE2b-256 632928b4ba12a3d10856aee3006ad8f40623d4086d4d99b033f6bfb4899d02a6

See more details on using hashes here.

File details

Details for the file qif-1.1.10-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: qif-1.1.10-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 13.0 MB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.7

File hashes

Hashes for qif-1.1.10-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3c004c04c619ff6f09fb1daddf5db76cbbdafa2c157614489936240b051595a8
MD5 a74e346900229703ddfaff477ddc3c82
BLAKE2b-256 e8c5866d12d283e11a2e96a62ea36bd4667e3e4b80ca2a43574c54402a4f3ffe

See more details on using hashes here.

File details

Details for the file qif-1.1.10-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: qif-1.1.10-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 17.6 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.7

File hashes

Hashes for qif-1.1.10-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 5dbc6bceea648f035c7d2e173f21bae42fcb37ff53022ce4ebbb52fa7ba544e6
MD5 963274cb658083aec3f0e0d34e41cf67
BLAKE2b-256 d562e1ab867bb96686143d6fbdc8877991da62e86c5c6126bbfd2d7f76699c88

See more details on using hashes here.

File details

Details for the file qif-1.1.10-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: qif-1.1.10-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 20.9 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.7

File hashes

Hashes for qif-1.1.10-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 db5a42bdebbf95d5e5eb1f0bcbf1ea9088d2ae94a6d235b86268dc0fbae89a17
MD5 728f6f3a9005c5d2c6ce6ca65aca2fd9
BLAKE2b-256 2d2f507f4b35449bfb930b6d90fe9aa6520f0300b20855394e2376a552a972ef

See more details on using hashes here.

File details

Details for the file qif-1.1.10-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: qif-1.1.10-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 13.0 MB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.7

File hashes

Hashes for qif-1.1.10-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 dfd9de1d37d82785a55f51920f0ecd1e38559e5be42c84d11ec6ce986208fdba
MD5 0a198a29d70ad62c7b1ae6bef731bf59
BLAKE2b-256 21a57561c922827866949d3b2ee8f0559fa814f8b2b4d18f6f1db1b45b4d7bc7

See more details on using hashes here.

File details

Details for the file qif-1.1.10-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: qif-1.1.10-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 17.6 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.7

File hashes

Hashes for qif-1.1.10-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 f9a67cc2351d73eef5dec6fdb9e13f1d202038ea72289097ee8079a258cc4f70
MD5 c4e3b2448417c74b75596286376c5e72
BLAKE2b-256 c588de1fd87d0b84fe2d82e70f8e8869db06bbe5e99a5df0a9bec14fea7d8919

See more details on using hashes here.

File details

Details for the file qif-1.1.10-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: qif-1.1.10-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 20.9 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.7

File hashes

Hashes for qif-1.1.10-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d33675a7df4fcd47ddbd4be3f283543e6a4e46796489f4e013ca77fa7c52b9a8
MD5 0da04831c96eec8c2eaf8deb73c25c61
BLAKE2b-256 5d91bcd9818b5e98496b7ff45f5b66ba858818283c322a002616d38a97252432

See more details on using hashes here.

File details

Details for the file qif-1.1.10-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: qif-1.1.10-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 13.0 MB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.7

File hashes

Hashes for qif-1.1.10-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 488ce8c21cbf3a29ebf965995008d8ca580690dd5ff150f9d0238fe9c5a246f0
MD5 8d8977d2e99050c25acd8f64a4411cd4
BLAKE2b-256 fc3b770c0874f3e030bea9691b50b4d0d335c5350546f6d15b809718faff5d97

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page