Jul 20, 2023

QM-like superpositions in Perl

The QuantumSuperpositions module adds two new operators to Perl any and all.

Each of these operators takes a list of values states and superimposes them into a single scalar value a superposition, which can then be stored in a standard scalar variable.

The any and all operators produce two distinct kinds of superposition. The any operator produces a disjunctive superposition, which may notionally be in any one of its states at any time, according to the needs of the algorithm that uses it.

In contrast, the all operator creates a conjunctive superposition, which is always in every one of its states simultaneously.

Superpositions are scalar values and hence can participate in arithmetic and logical operations just like any other type of scalar. However, when an operation is applied to a superposition, it is applied notionally in parallel to each of the states in that superposition.

Checkout these related ports:
  • Zig - Language designed for robustness, optimality, and maintainability
  • Zephir - Zephir is a transpiled language used for creating C-extensions for PHP
  • Ypsilon - Scheme implementation for real-time applications
  • Yorick - Interpreted language for scientific simulations
  • Yap - High-performance Prolog compiler
  • Yap-devel - High-performance Prolog compiler
  • Yabasic - Yet another Basic for Unix and Windows
  • Voc - Vishap Oberon Compiler for Oberon-2
  • Vala - Programming language and compiler that converts Vala code into C code
  • V8 - Open source JavaScript engine by Google
  • V8-beta - Open source JavaScript engine by Google
  • V - V Programming Language
  • Urweb - Ultimate host for embedded domain-specific languages
  • Ucc - C Compiler Which Implements the ANSI C89 Standard
  • Twelf - Meta-logical framework for deductive systems