Skip to main content

Representation and Decomposition with Sums of Product for Operations in separated dimensions

Project description

Sums Of Product

SoPy

Representation and Decomposition with Sums of Product for Operations in separated dimensions

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.

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

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, wavenumbers = [0,0], phis = [0,0])

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, wavenumbers = [0,0], phis = [0,0])

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, wavenumbers = [0,0], phis = [0,0])

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, wavenumbers = [0,0], phis = [0,0])

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

cv = sp.operand( u, sp.vector() )

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

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( partition = partition, iterate = 10, total_iterate = 10).dist(v) for partition in range(1,len(v))]

Compare with standard approaches

[ v.decompose( partition = partition, iterate = 10, total_iterate = 10).dist(v) for partition in range(1,len(v))]

Use boost

[ v.boost().fibonacci(  partition = partition, iterate = 10 ,alpha = 1e-2).unboost().dist(v) for partition in range(1,len(v))]

How to Contribute

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

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-1.1.1.tar.gz (11.0 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-1.1.1-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sopy_quantum-1.1.1.tar.gz
Algorithm Hash digest
SHA256 65cf572b5f20de1f0ebcc3d9c7bab4c04ab5b236d6e2794357127681b45f9ec9
MD5 3880cbcb22c560bbfea97ffcd0ac3be8
BLAKE2b-256 4c4f429fc36c40411b0cc68e90e2d47517768623faf35bb7623c03895edb6961

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sopy_quantum-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 54ede66054939cb2e8b2734fae2672aaf50d0231d36c2b31e81dc6236f2d3902
MD5 9bff7482530ca399803990fb256ed68e
BLAKE2b-256 e3e6c6226b56f184a12c442575c9641e2fbef5733c41d554b5c715962d6b469f

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