Skip to main content

Representation and Decomposition with Sums of Product for Operations in separated dimensions. Now using bandlimit place data on lattice.

Project description

Sums Of Product

SoPy

[ pypi.org ] PyPI Downloads

Sums of Products for data and science

Conceptual

Let multidimensional distributions be handled in the new-old fashion way... Methods as old as the census and modernized by Beylkin and Mohlenkamp 2005 for physics. Wherein is a suite of code to hold and decompose SoP vectors. We engage with the word decomposition not as a dimensional reduction, but as a canonical-rank reducer. See, data already is in SoP form, why write it in dense hyper dimensions?

Since 2018, we have been aware that Coulomb and other functions can be written in SoP ways, but thats the published secret sauce. We simply are publishing our best understanding of how the SoP vector should be decomposed. Including some tricks which have not seen the light of day before that fundamentally improve the process, see Fibonacci.

Recent additions to this package allow you to treat your data, gaussians, as operators; or compute the multiplication of exp_i-k^X by your dataset while maintaining separated dimensions!

Expect a paper to be published when time can be found to do so.

How to install

pip install sopy-quantum

import sopy as sp

New features

pySCF

Take an arbitrary electronic structure system defined in pySCF, you can put it into SoP 3D space. A stage towards various applications. Go to examples/pySCF_wavefunction.ipynb to follow my logic.

Fourier Transform

The work here, should not fall into the trap of native-Fast Fourier Transform. Multiply an arbritary vector by exp(i k X^). Using really sophisicated operator logic embedded in recent work.

Gaussian Blurr Transform

Multiply an arbritary vector by exp(-0.5 alpha (X^-position)**2 ). Using really sophisicated operator logic embedded in recent work.

Tensorly interface

Unclear when its appropriate, but you can use examples/ext to expand SoP into space and use Tensorly to reduce it again.

Functions

First set a lattice,

lattices = 2*[np.linspace(-10,10,100)]

2D gaussian at (2,6) with sigmas (1,1), and polynominal 0,0

u = sp.Vector().gaussian(a = 1,positions = [2,6],sigmas = [1,1],ls = [0,0], lattices = lattices)

2D gaussian at (0.1,-0.6) with sigmas (1,1), and polynominal 0,0

k = sp.Vector().gaussian(a = 1,positions = [0.1,-0.6],sigmas = [1,1],ls = [0,0], lattices = lattices)

2D gaussian at (-1,-2) with sigmas (1,1), and polynominal 1,1

k = k.gaussian(a = 2,positions = [-1,-2],sigmas = [1,1],ls = [1,1], lattices = lattices)

2D gaussian at (-2,-5) with sigmas (1,1), and polynominal 1,0

v = k.copy().gaussian(a = 2,positions = [-2,-5],sigmas = [1,1],ls = [1,0], lattices = lattices)

Multiply operand by exp_i(k ^X ) for k = (1,0)

cv = sp.Operand( u, sp.Vector() )

cv.exp_i([1,0]).trace()

linear dependence factor...

alpha = 0

take v and remove k from it, and decompose into vector u ; outputing to vector q

q = u.learn(v-k,  alpha = alpha, iterate = 1)

Get the Euclidean distance from vector v-k and q

q.dist(v-k)

Reduce v with Fibonacci procedure

v.Fibonacci(ambiguity_rate=0.1).dist(v)

The ambiguity rate will keep things real under recursive iterations driven by external programs.

How to Contribute

  • Develop amplitude/component to various non-local resources
  • Engage with Quantum Galaxies deploying matrices in separated dimensions

Paper in preprint

[ Cardinal Fourier Transform: A Dimensionally Separated Alternative to the FFT ] (https://zenodo.org/records/18896541)

Contact Info

SoPy Website

Quantum Galaxies Articles

Quantum Galaxies Corporation

Project details


Download files

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

Source Distribution

sopy_quantum-2.0.0.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sopy_quantum-2.0.0-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

Details for the file sopy_quantum-2.0.0.tar.gz.

File metadata

  • Download URL: sopy_quantum-2.0.0.tar.gz
  • Upload date:
  • Size: 22.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for sopy_quantum-2.0.0.tar.gz
Algorithm Hash digest
SHA256 bb59a7645401461730c0a1e4483877de2666e3171ce68cd9e88679956ae2a94d
MD5 db8c4099036957f642c629910295d116
BLAKE2b-256 70a272d7c9313fbb6fed9df9d4c1dd8ce3eb370d3622044f893a3ec5752906bf

See more details on using hashes here.

File details

Details for the file sopy_quantum-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: sopy_quantum-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 23.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for sopy_quantum-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78ad58aec966ef8563f3300e5fd204ce99d764b4773ec13dc945886dea12a9d5
MD5 8e323f12926c4580ec1d6c0880ca468c
BLAKE2b-256 2ab3796ba049baf84b80d644c898d2041cce29ebde115214009f51f41df3eece

See more details on using hashes here.

Supported by

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