Skip to main content

Grover’s Search Visualizer

A tiny Python package that steps through Grover’s Search algorithm and shows you, after each iteration:

  • A bar‐chart of amplitudes (or probabilities)
  • A sine‐curve of success‐probability vs. iteration
  • A geometric "rotation" on the unit circle

Choose between a Matplotlib-based CLI or an optional DearPyGui GUI (WIP).


Demo of Grover’s Visualizer


Installation

Via pipx

Basic (CLI only):

pipx install grovers-visualizer
grovers-visualizer 1111

With the optional DearPyGui UI (WIP):

pipx "grovers-visualizer[ui]"
grovers-visualizer --ui

Via uvx

Basic (CLI only):

uvx grovers-visualizer 1111

With the optional UI extra:

uvx "grovers-visualizer[ui]" --ui

Usage

CLI Mode

Flags:

• -t, --target
 Target bit‐string (e.g. 010). Length determines number of qubits.
• -s, --speed
 Delay between iterations (seconds). Default 0.5.
• -i, --iterations
 Max iterations; 0 means use the optimal $\lfloor\frac\pi4\sqrt{2^n}\rfloor$.
• --ui
 Launch the optional DearPyGui GUI (requires the [ui] extra) (WIP).

GUI Mode (WIP)

If you installed with "[ui]", launch the DearPyGui window:

grovers-visualizer --ui

In the UI you can:

  • Set number of qubits
  • Enter the target bit‐string
  • Choose max iterations or leave at 0 for optimal
  • Control the animation speed

Hit Start to watch the bar chart, sine plot, and rotation‐circle update in real time.


License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for grovers-visualizer 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for grovers-visualizer 0.5.0
File Size Uploaded Provenance Actions
grovers_visualizer-0.5.0.tar.gz 351.3 kB Without provenance Details for grovers_visualizer-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for grovers-visualizer 0.5.0
File Interpreter ABI Platform Actions
grovers_visualizer-0.5.0-py3-none-any.whl Python 3 none any Details for grovers_visualizer-0.5.0-py3-none-any.whl

Total release size: 364.9 kB

Release files / grovers_visualizer-0.5.0.tar.gz

Download URL grovers_visualizer-0.5.0.tar.gz
Size 351.3 kB
Tags Source
SHA-256 checksum
How to use checksums
aceb44b6a36de6e1dc1864c207f702f71721fa62403ae0ad1e5a2ee50c0284d5
BLAKE2b-256 checksum
How to use checksums
f0fa2fb2bc42e2efae77a2ffb1ba8741e1130dc66f86f1d9c4f5a857ec921a49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.22

Release files / grovers_visualizer-0.5.0-py3-none-any.whl

Download URL grovers_visualizer-0.5.0-py3-none-any.whl
Size 13.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47d0e8500e741168d8f3a4378db0d1379bc2d28b894324aa69c3786f7b59e588
BLAKE2b-256 checksum
How to use checksums
56ba9ab34aa9a94d754b7eff6bcdf0541a5e0362232bd6fb106e064946a5a3a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.22

Security for grovers-visualizer 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page