npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

quantum_neuron2

v1.0.1

Published

A perceptron neuron that simply recognizes differences.

Downloads

11

Readme

quantum_neuron

A differential neuron that is specifically designed to simply recognize differences.

Install using NPM

npm install quantum_neuron2

Use as standalone

<script type="text/javascript" src="neuron_standalone.js" async></script>

Please note that the QuantumNeuralNetwork is still in development and may have some limitations that we are working on that will soon be resolved in this repo.

How to use the QuantumNeuron?

Basically you can create your own networks with this neuron, the one we've supplied here is just a basic example of how to combine neurons. It's functionality is pretty sufficient so you don't need lots of neurons to achieve your goals.

Important notice: This is not a conventional neuron (perceptron).

What's the difference? (How it works and how it's not working like the normal neuron)

QuantumNeuron is just taking an array of numbers and measures the differences between numbers in respect of the positions in the array.

Example: [1, 2] is equal to [100, 200], or [315, 630] but is not equal to [2, 1] even if the difference is the same, because positions are important!

How does the conventional neuron work? Well long story short: A conventional perceptron is taking an input, activates it by multiplying the value by a weight (that's just a number) and gives the multiplied value to the output. This method did not work for us because we are not searching for recognitions of same inputs, we want to recognize differences!

The comparison between a conventional neuron and the Quantum Neuron is like comparing a raster pixel matrix image to a vector shape.

You can combine a conventional neuron with QuantumNeuron.

Code Example:

import Quantum from 'quantum_neuron';

const n = new Quantum.Neuron();

n.train([0, 1], "lesser than");
n.train([1, 1], "alike");
n.train([1, 0], "greater than");

n.predict([100, 500]); // Returns "lesser than"
n.predict([1100, 500]); // Returns "greater than"
n.predict([1100, 1000]); // Returns "alike"

Usage in graphic design AI:

//A vertical rectangle 2 pixels height and 1 pixel width, providing the sizes of each wall clockwise

n.train([2, 1, 2, 1], "A vertical rectangle!");

//A horizontal rectangle 1 pixels height and 2 pixel width, providing the sizes of each wall clockwise

n.train([1, 2, 1, 2], "A horizontal rectangle!");

//A square rectangle 1 pixels height and 1 pixel width, providing the sizes of each wall clockwise

n.train([1, 1, 1, 1], "A square rectangle!");

n.predict([314, 120, 314, 120]); // Returns "A vertical rectangle!"
n.predict([314, 1120, 314, 1120]); // Returns "A horizontal rectangle!"
n.predict([1120, 1120, 1121, 1120]); // Returns "A square rectangle!"

More readme soon! Promise! Currently we don't know the limits of QuantumNeuron.