Library for researcher with statistics and mechanics equation non-extensive 📈📊📚
Project description
Qfunction
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file qfunction-1.0.1642.tar.gz
.
File metadata
- Download URL: qfunction-1.0.1642.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be5baad80f8bb13cda6f71a4d67e00138b571392bfe429c1e49b1afdf2f2865c |
|
MD5 | b52ae2d4281c12795cbed32fceecaf1b |
|
BLAKE2b-256 | 8bc919aca4714cdcb2de29af4340a081ca7621403ecaa5ad2bd96eafcff2cc2b |
File details
Details for the file qfunction-1.0.1642-py3-none-any.whl
.
File metadata
- Download URL: qfunction-1.0.1642-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fe627045fc81dd38200b7516bfe7cbfd443f2f650076df38b1afe8bb0df5f49 |
|
MD5 | 204fd56eaf5e684e4eb77fcb46e9c6be |
|
BLAKE2b-256 | 395443df06614680904031bdc5b8fc0dc9a2acd0a9682d4aaccbf80015d3d223 |