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 🙏

© 2025 – Pkg Stats / Ryan Hefner

quvis

v0.27.1

Published

Quvis Web Interface - Interactive quantum circuit visualization

Readme

PyPI version Python Version Downloads Code style: black Type checked: mypy Tests

Quvis - Quantum Circuit Visualization Platform

Quvis is a quantum circuit visualization platform that provides interactive 3D visualization of logical and compiled circuits.

🚀 Quick Start

Interactive Playground (Web App)

Run the interactive web playground locally:

git clone https://github.com/alejandrogonzalvo/quvis-web.git
cd quvis-web
pip install poetry
poetry install
npm install

# Option 1: Start both backend and frontend automatically
./scripts/start-dev.sh

# Option 2: Start manually (2 terminals)
# Terminal 1: FastAPI backend
./scripts/start-backend.sh
# Terminal 2: Vite frontend
npm run dev

Open http://localhost:5173 in your browser.

Installation

Option 1: Install from PyPI (Recommended)

# Install the latest stable version
pip install quvis

Option 2: Install from Source (Development)

# Clone the repository
git clone https://github.com/your-repo/quvis.git
cd quvis

# Install in development mode
pip install -e .

# Or using Poetry
poetry install

Prerequisites

  • Python 3.12+
  • Node.js 16+ (for web interface)
  • npm or yarn (for frontend dependencies)

Running Examples

After installation, you can run the examples directly:

# Run the main examples
python examples/library_usage.py

Usage

Basic Usage

from quvis import Visualizer
from qiskit import QuantumCircuit

# Create visualizer
quvis = Visualizer()

# Add any quantum circuit
circuit = QuantumCircuit(4)
circuit.h(0)
circuit.cx(0, 1)
circuit.cx(1, 2)
circuit.cx(2, 3)

# Add and visualize - opens your browser with interactive 3D view!
quvis.add_circuit(circuit, algorithm_name="Bell State Chain")
quvis.visualize()

Multi-Circuit Comparison

from quvis import Visualizer
from qiskit.circuit.library import QFT
from qiskit import transpile

quvis = Visualizer()

# Add logical circuit
logical_qft = QFT(4)
quvis.add_circuit(logical_qft, algorithm_name="QFT (Logical)")

# Add compiled circuit with hardware constraints
coupling_map = [[0, 1], [1, 2], [2, 3]]
compiled_qft = transpile(logical_qft, coupling_map=coupling_map, optimization_level=2)
quvis.add_circuit(
    compiled_qft,
    coupling_map={"coupling_map": coupling_map, "num_qubits": 4, "topology_type": "line"},
    algorithm_name="QFT (Compiled)"
)

# Visualize both circuits with tabs - logical (green) vs compiled (orange)
quvis.visualize()

🤝 Contributing

See CONTRIBUTING.md for guidelines.

📄 License

This project is licensed under the MIT License.