~a

From Esolang
Jump to navigation Jump to search
The title of this article is not correct because of technical limitations. The correct title is actually ~a|b>.

The ~a|b> language simulates qubits using numbers between one or zero for probabilities instead of using ints for memory. ~a|b> was made in 2025 on june 23 by User:A(). Particles are points in space that have 'existness'(the probability of existing) which is also their value. You can shift their 'existness' by using + or -.

Commands

*'~a|b>' - Between existing and not existing
* '+' - Shifts the 'existness' of the current particle forward (by 0.00000001)
* '-' - Shifts the 'existness' of the current particle backward (by 0.00000001)
* '{x,y,z...}[label](value)' - Particle
* 'Call[label]&/Shift/ ' - Call particle and shifts it forward or backward
* '#!{dimension}&/Shift/' - Move forward 1 particle in a dimension and shift the current particle
* '#!!{dimension}&/Shift/' - Move backward 1 particle in a dimension and shift the current particle
* 'While:condition:/code/' - While :condition: is true run /code/
* '?' - accepts input from user
* 'O(value)' - Ouputs value

Dimensions

There are infinte dimensions, so infinte memory



Programs

Truth machine

{0,0,0,0,...}[Input](?)
{0,0,0,1,0,...}[Condition](~a|b>)
Call[Condition]&/(10^8 pluses)/
While:Input=Condition:/O(Input)/
O(Input)

(Future note: this language isn't actually quantum)