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

@enqoding/node-red-contrib-quantum

v1.0.0-quantum-sec.3

Published

Quantum circuit and algorithm nodes for Node-RED 4.x security orchestration workflows

Readme

@enqoding/node-red-contrib-quantum

Platform CI

Quantum circuit and algorithm nodes for Node-RED 4.x security orchestration workflows.

Fork status

This repository is an internally maintained fork of the upstream node-red-contrib-quantum project.

  • Upstream project: node-red-quantum/node-red-contrib-quantum
  • Fork namespace target: @enqoding/node-red-contrib-quantum
  • Current fork version: 1.0.0-quantum-sec.3

This fork modernizes the project for Node-RED 4.1.5, Node.js 18+, updated linting and test tooling, current Python/Qiskit compatibility work, and CI validation on Node 18 and 20.

Compatibility matrix

| Component | Supported version | | --- | --- | | Node-RED | 4.1.5 | | Node.js | >= 18.0.0 | | Recommended Node.js | 20.x | | Python | 3.10+ | | Tested in CI | Node 18, Node 20 | | Python-backed runtime | local venv created by postinstall |

What is included

This package provides Node-RED nodes for:

  • building quantum circuits
  • manipulating qubits and registers
  • applying common quantum gates
  • simulating and visualizing circuit output
  • running packaged algorithm nodes such as Grover's and Shor's-related flows

The package currently exposes 27 Node-RED nodes through the node-red package metadata.

Installation

From a local clone

  1. Install Node.js 18 or later.
  2. Install Python 3.10 or later.
  3. Clone this repository.
  4. From the repository root, run npm ci.

This installs Node.js dependencies and then runs postinstall, which prepares a local Python virtual environment and installs the required Python packages.

Start Node-RED locally

Run npm run start.

Development commands

  • npm run lint
  • npm test
  • npm run coverage

Python environment

The project uses a repository-local virtual environment created by:

  • bin/pyvenv.sh on Bash-compatible shells
  • bin/pyvenv.ps1 on Windows PowerShell

The Python setup currently installs these packages:

  • qiskit
  • qiskit-aer
  • qiskit-algorithms
  • matplotlib
  • pylatexenc
  • qiskit-finance
  • qiskit-optimization

Security considerations

This fork is intended for controlled engineering use inside security orchestration workflows.

Key security expectations:

  • use pinned dependencies via package-lock.json
  • run regular npm audit and dependency scanning
  • validate Python package versions in controlled environments
  • review flow inputs carefully before executing Python-backed nodes
  • treat IBM Quantum and external service credentials as sensitive secrets
  • prefer isolated runtime environments for production deployments

Migration notes from upstream v0.4.0

This fork is not a drop-in runtime upgrade without review.

Notable changes from the upstream baseline include:

  • Node-RED target updated from older 1.x assumptions to Node-RED 4.1.5
  • Node.js baseline updated to 18+
  • ESLint, Mocha, Chai, and Node-RED test helper modernized
  • CI added for Node 18 and 20
  • Python/Qiskit compatibility behavior updated for current environments
  • cross-platform npm scripts updated using cross-env

Before migrating existing flows from upstream v0.4.0:

  1. verify the runtime is using Node-RED 4.1.5
  2. verify Node.js is 18 or 20
  3. recreate the Python virtual environment
  4. retest simulator and algorithm flows
  5. review any IBM Quantum connectivity assumptions
  6. validate output formatting for Script, Grovers, and Shors-related flows

Known limitations

The fork is functional, but there are important limitations to document:

  • Shors currently uses a compatibility fallback rather than a real modern Qiskit Shor implementation
  • IBM Quantum related behavior may require additional work depending on upstream API changes
  • Python and Qiskit package compatibility should be validated in each deployment environment
  • live editor/runtime validation has been completed for Node-RED 4.1.5 on Node.js 20, but should still be repeated in the final target staging environment before release

Testing status

Current local validation baseline:

  • lint passes
  • test suite passes
  • CI passes on Node 18 and Node 20

Live Runtime Validation

The fork has been smoke-tested successfully in a live Node-RED 4.1.5 editor/runtime environment on Node.js 20.

Validated manually:

  • all 27 nodes loaded in the palette
  • quantum category displayed 24 nodes
  • quantum algorithms category displayed 3 nodes
  • node edit dialogs opened correctly
  • deploy succeeded in the Node-RED editor
  • no startup or deploy-time deprecation warnings were observed during this validation

Architecture

See ARCHITECTURE.md for a higher-level description of the quantum-classical flow model, node interaction patterns, and Python execution boundaries.

Contributing

Internal fork maintenance should prefer small, auditable changes with test coverage.

Recommended workflow:

  1. branch from master
  2. make focused changes
  3. run lint and tests locally
  4. push branch and verify GitHub Actions
  5. merge only after CI passes

Release and public publishing

This package can be published publicly to npm under the scoped name @enqoding/node-red-contrib-quantum for community use and Node-RED Flow Library listing.

Recommended publish settings:

  • access: public
  • registry: https://registry.npmjs.org

Before publishing:

  1. confirm the package name and version in package.json
  2. authenticate with npm in the publishing environment
  3. run npm ci
  4. run npm run lint
  5. run npm test
  6. run npm pack --dry-run
  7. publish with npm publish

Notes:

  • use scoped public publish settings for the @enqoding package
  • keep release credentials out of the repository and use environment or CI secrets only
  • keep the Shors compatibility fallback limitation documented in release notes and downstream docs

Acknowledgements

This project is based on the original node-red-contrib-quantum work by the upstream authors and contributors.

See AUTHORS and the upstream repository history for original project attribution.