Skip to main content

Organoid Processing Unit (OPU) framework with NeoCode Compiler for High-Order Tensor support

Project description

pyopu: Organoid Processing Unit Framework

pyopu is a Python framework for simulating and executing combinatorial optimization tasks on biological wetware (Brain Organoids) using the Holographic Tensorial Paradigm.

Features

  • Agnostic Math Engine: Compile NP-Hard problems into arbitrary high-order arrays using dynamic np.einsum.
  • Holographic NeoCode Paradigm: Define problems with algebraic logic and visually inspect Hamiltonian graphs.
  • Interchangeable Backends: Run problems on virtual MEAs (Microelectrode Arrays) or advanced Dual-Opsin Optogenetic interfaces.
  • Observer Telemetry: Extract spikes, opsin kinetics, and energy dynamics cleanly without cluttering the engine.

Defining Problems with NeoCode

pyopu uses the new NeoCode Compiler to translate logical problem definitions directly into dynamic high-order tensor arrays.

from pyopu.neocode import NeoCode, NeoTerm

prog = NeoCode(num_neobits=5)
prog.add_term(NeoTerm(weight=-20, logic=["x1", "~x3", "x4"]))
prog.draw()

The draw() method outputs a visual representation of the problem topology and algebraic Hamiltonian equation.

Quickstart

Check the examples/ directory for full implementations of the Max-Cut and 3-SAT problems using the new NeoCode abstraction.

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

pyopu-0.3.3.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

pyopu-0.3.3-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file pyopu-0.3.3.tar.gz.

File metadata

  • Download URL: pyopu-0.3.3.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for pyopu-0.3.3.tar.gz
Algorithm Hash digest
SHA256 52f8c3b43c51b57d5a9a33f1cdd3be1d31f34b869b0dde2e0fb27fb14c1e9873
MD5 588adef3cb715e2851f1957f1d44fcf7
BLAKE2b-256 ac280d4eec39e31973cb7e00ad198bc0ef287a24c1064a92ae59184c5e7b5228

See more details on using hashes here.

File details

Details for the file pyopu-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: pyopu-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for pyopu-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e14875ae82e23cb169d3dc65d98750f8111d5dc2f6e3c9e9019b6a65565fc173
MD5 764d97ef61508d435613b1244047b72c
BLAKE2b-256 a395d3dcf1e52f8e79e4f15e5976f02e1a8b08016563988be4a2d48391cc9398

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