Academic

PhasorFlow: A Python Library for Unit Circle Based Computing

arXiv:2603.15886v1 Announce Type: new Abstract: We present PhasorFlow, an open-source Python library introducing a computational paradigm operating on the $S^1$ unit circle. Inputs are encoded as complex phasors $z = e^{i\theta}$ on the $N$-Torus ($\mathbb{T}^N$). As computation proceeds via unitary wave interference gates, global norm is preserved while individual components drift into $\mathbb{C}^N$, allowing algorithms to natively leverage continuous geometric gradients for predictive learning. PhasorFlow provides three core contributions. First, we formalize the Phasor Circuit model ($N$ unit circle threads, $M$ gates) and introduce a 22-gate library covering Standard Unitary, Non-Linear, Neuromorphic, and Encoding operations with full matrix algebra simulation. Second, we present the Variational Phasor Circuit (VPC), analogous to Variational Quantum Circuits (VQC), enabling optimization of continuous phase parameters for classical machine learning tasks. Third, we introduce the P

D
Dibakar Sigdel, Namuna Panday
· · 1 min read · 8 views

arXiv:2603.15886v1 Announce Type: new Abstract: We present PhasorFlow, an open-source Python library introducing a computational paradigm operating on the $S^1$ unit circle. Inputs are encoded as complex phasors $z = e^{i\theta}$ on the $N$-Torus ($\mathbb{T}^N$). As computation proceeds via unitary wave interference gates, global norm is preserved while individual components drift into $\mathbb{C}^N$, allowing algorithms to natively leverage continuous geometric gradients for predictive learning. PhasorFlow provides three core contributions. First, we formalize the Phasor Circuit model ($N$ unit circle threads, $M$ gates) and introduce a 22-gate library covering Standard Unitary, Non-Linear, Neuromorphic, and Encoding operations with full matrix algebra simulation. Second, we present the Variational Phasor Circuit (VPC), analogous to Variational Quantum Circuits (VQC), enabling optimization of continuous phase parameters for classical machine learning tasks. Third, we introduce the Phasor Transformer, replacing expensive $QK^TV$ attention with a parameter-free, DFT-based token mixing layer inspired by FNet. We validate PhasorFlow on non-linear spatial classification, time-series prediction, financial volatility detection, and neuromorphic tasks including neural binding and oscillatory associative memory. Our results establish unit circle computing as a deterministic, lightweight, and mathematically principled alternative to classical neural networks and quantum circuits. It operates on classical hardware while sharing quantum mechanics' unitary foundations. PhasorFlow is available at https://github.com/mindverse-computing/phasorflow.

Executive Summary

PhasorFlow is an innovative open-source Python library that leverages the mathematical principles of unit circle computing to provide a deterministic, lightweight, and mathematically principled alternative to classical neural networks and quantum circuits. By encoding inputs as complex phasors on the S^1 unit circle and utilizing unitary wave interference gates, PhasorFlow enables algorithms to natively leverage continuous geometric gradients for predictive learning. This library introduces three core contributions: the Phasor Circuit model, the Variational Phasor Circuit, and the Phasor Transformer. With applications in non-linear spatial classification, time-series prediction, financial volatility detection, and neuromorphic tasks, PhasorFlow has the potential to revolutionize the field of machine learning and computing. Its availability on GitHub ensures accessibility to the research community.

Key Points

  • PhasorFlow operates on the S^1 unit circle, encoding inputs as complex phasors.
  • The library utilizes unitary wave interference gates to preserve global norm and leverage continuous geometric gradients.
  • PhasorFlow introduces the Phasor Circuit model, the Variational Phasor Circuit, and the Phasor Transformer.

Merits

Strength in Mathematical Principles

PhasorFlow is grounded in the mathematical principles of unit circle computing, making it a deterministic and lightweight alternative to classical neural networks and quantum circuits.

Scalability and Flexibility

PhasorFlow's Phasor Circuit model and Variational Phasor Circuit enable the development of complex algorithms that can be scaled and adapted to various machine learning tasks.

Open-Source Availability

PhasorFlow's availability on GitHub ensures accessibility to the research community, facilitating collaboration and innovation.

Demerits

Limited Hardware Compatibility

PhasorFlow operates on classical hardware, which may limit its performance compared to specialized quantum hardware.

Complexity and Steep Learning Curve

PhasorFlow's unique mathematical principles and algorithms may require significant expertise to fully understand and implement.

Expert Commentary

PhasorFlow represents a significant breakthrough in the field of machine learning and computing. By leveraging the mathematical principles of unit circle computing, this library provides a deterministic, lightweight, and mathematically principled alternative to classical neural networks and quantum circuits. While there are limitations to PhasorFlow's hardware compatibility and complexity, its open-source availability and potential for scalability and flexibility make it an exciting development. Expertise in quantum computing, machine learning, and mathematics is required to fully understand and implement PhasorFlow's algorithms. As researchers continue to explore and refine PhasorFlow, its implications for the development of complex algorithms and its potential to revolutionize the field of machine learning are vast.

Recommendations

  • Researchers and practitioners should engage with PhasorFlow and explore its applications in machine learning and computing.
  • PhasorFlow's developers should continue to refine and expand the library, addressing its limitations and increasing its accessibility to a broader audience.

Sources