Skip to main content

Qfunction





PyPI - Downloads
CodeFactor Grade

Library for researcher with statistics and mechanics equation non-extensive 📈📊📚

Non-extensive works

This package is for development and works using the deformed non-extensive algebra, using for calculus, the simple algebra and the specials functions from quantum mechanics and theoretical physic, on the non-extensive mode.
The all functions and equation on this work, is based in the articles and papers from Dr. Bruno G. da Costa, your friend, the PhD Ignácio S. Gomes and others peoples and articles about the non-extensive works.

Installation:


this lib is found on the site of packages for python the pypi and on the site that is a repository for the codes and softwares with licenses from majority business of the word, the github.

Linux

$ pip install qfunction -U

Windows

C\:> py -m pip install qfunction -U



Examples


fundamentals

simple algebra

from qfunction.fundamentals.canonic import prod
from qfunction.fundamentals import q_sum,q_mult,q_ln,q_sub

#the sum deformed on q=1
print(q_sum(4,2,1,q=1)) 
#output: 6

#the sum deformed on q=1.9
print(q_sum(4,2,1,q=1.9)) 
#output: -0.200000000000351

#the multiplication deformed on q=1
print(q_mult(1,2,q=1))
#output: 2

#the multiplication deformed on q=.8
print(q_mult(1,2,q=.8))
#output: 1.9999999999999998

#the natural logarithm on q=1
print(q_ln(3,q=1))
#output: 1.0984848484848484

#the natural logarithm deformed on q=.5
print(q_ln(3,q=.5))
#output: 1.4641016151377162

print(q_sub(4,3,q=.9))

Quantum

creating a quantum circuit base

from qfunction.quantum import QuantumCircuit as Qc

q = 1.
qc = Qc(4,q=q)
qc.Y(2)
qc.H(2,1)
qc.med(2)
#print(qc)

any equations

from qfunction.quantum.equations import S,S_q
from qfunction.fundamentals import q_cos,q_sin
from numpy import array,linspace,pi

t = array([1,2,34,56,34,23])
p = t/t.sum()
#print(p)
#print(S(p))

t = linspace(-2,2,100)*2*pi

theta = t/2
gamma = t
q =1

## testing the entropy deformed  ##
print(S_q(theta,gamma,q))

q = .5
print(S_q(theta,gamma,q))

q = 1.5
print(S_q(theta,gamma,q))

Algorithms

one simlpe example of code game on quantum circuit deformed

from qfunction.quantum import QuantumCircuit as Qc
from qfunction.quantum.algorithms import ArenaGame

q = .9
qc = Qc(1,q=q)
game = ArenaGame(qc=qc)

game.up()
game.left()
game.left()
game.show()

Others Examples on colab.


Metadata

Release files for qfunction 1.0.1642

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

Source distribution (sdist)

Source distribution for qfunction 1.0.1642
File Size Uploaded Provenance
qfunction-1.0.1642.tar.gz 13.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for qfunction 1.0.1642
File Interpreter ABI Platform
qfunction-1.0.1642-py3-none-any.whl Python 3 none any Details

Total release size: 30.1 kB

Release files / qfunction-1.0.1642.tar.gz

Download URL qfunction-1.0.1642.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
be5baad80f8bb13cda6f71a4d67e00138b571392bfe429c1e49b1afdf2f2865c
BLAKE2b-256 checksum
How to use checksums
8bc919aca4714cdcb2de29af4340a081ca7621403ecaa5ad2bd96eafcff2cc2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

Release files / qfunction-1.0.1642-py3-none-any.whl

Download URL qfunction-1.0.1642-py3-none-any.whl
Size 16.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7fe627045fc81dd38200b7516bfe7cbfd443f2f650076df38b1afe8bb0df5f49
BLAKE2b-256 checksum
How to use checksums
395443df06614680904031bdc5b8fc0dc9a2acd0a9682d4aaccbf80015d3d223
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

Security for qfunction 1.0.1642

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