Skip to content

vijay227799/Custom_Quantum_Algorithm_Simulation_Using_Qiskit_Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 

Repository files navigation

โš›๏ธ Custom Quantum Gates Simulation

A Streamlit-powered interactive platform to design, simulate, and visualize custom quantum circuits using Qiskit.


๐Ÿ“Œ Overview

This repository provides a Quantum Circuit Simulation Tool built with Qiskit, Matplotlib, and Streamlit. It allows users to define algorithms in plain text, automatically parse them into quantum circuits, and visualize the simulation results.


โœจ Key Features

  • ๐Ÿ–ฅ๏ธ Interactive GUI โ€“ Built with Streamlit for seamless user experience.
  • โš›๏ธ Custom Gate Parsing โ€“ Supports Hadamard, Pauli (X, Y, Z), CNOT, and rotation gates (RX, RY, RZ).
  • ๐Ÿ“Š Simulation Engine โ€“ Uses Qiskit Sampler to evaluate quantum states and probabilities.
  • ๐Ÿ“ˆ Visual Output โ€“ Generates bar charts and plots of quantum state distributions.
  • ๐Ÿ” Efficiency Metrics โ€“ Displays circuit depth as a measure of computational efficiency.
  • ๐Ÿ“ท Image Export โ€“ Saves simulation results as JPEG for easy sharing and documentation.

๐Ÿ› ๏ธ Tech Stack

  • Languages: Python
  • Libraries: Qiskit, Matplotlib, PIL, Regex
  • Framework: Streamlit (for GUI)

โš™๏ธ Usage

1๏ธโƒฃ Run the Streamlit App

streamlit run main.py

2๏ธโƒฃ Enter Algorithm Instructions

Provide quantum gate instructions in text format (semicolon-separated). Examples:

H 0; CX 0 1; RX(1.57) 2; Measure All

3๏ธโƒฃ Visualize Results

The app will:

  • Parse instructions into a QuantumCircuit
  • Simulate using Qiskit Sampler
  • Display probability distributions and circuit efficiency
  • Export results as simulation_result.jpeg

๐Ÿ“‚ Repository Structure

โ”œโ”€โ”€ main.py                # Core simulation and Streamlit GUI
โ”œโ”€โ”€ simulation_result.jpeg # Example output image
โ”œโ”€โ”€ requirements.txt       # Dependencies
โ””โ”€โ”€ README.md              # Project documentation

๐Ÿ”ฎ Future Scope

  • ๐Ÿค– Advanced Gate Support โ€“ Add Toffoli, SWAP, and parameterized custom gates.
  • ๐Ÿ“Š Enhanced Analytics โ€“ Provide fidelity, entanglement measures, and performance benchmarks.
  • ๐ŸŽจ Interactive Visualizations โ€“ Real-time circuit diagrams with drag-and-drop gate placement.

About

Custom Quantum Gates Simulation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages