Skip to content

This repository contains a quantum circuit simulation using Qiskit. The project implements quantum gates, controlled operations, and ancilla-based filtering to analyze specific outcomes. The results are visualized as histograms, with options for filtering and normalization.

License

Notifications You must be signed in to change notification settings

Qusid/QuantumHHL_4x4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Here’s a template for your repository's README.md:


Quantum Circuit Simulation with Filtering and Normalization

This repository contains a quantum circuit simulation using Qiskit. The project implements quantum gates, controlled operations, and ancilla-based filtering to analyze specific outcomes. The results are visualized as histograms, with options for filtering and normalization.

Features

  • Construction of a complex quantum circuit with ancilla-based operations.
  • Simulation using the Qiskit Aer simulator.
  • Filtering of results based on ancilla qubit states.
  • Visualization of results as raw, filtered, and normalized histograms.
  • Requirement dependencies listed in requirements.txt.

Installation

Prerequisites

  • Python 3.8+
  • pip package manager

Steps

  1. Clone this repository:

    git clone https://github.com/your-repo-name.git
    cd your-repo-name
  2. Install dependencies:

    pip install -r requirements.txt

Usage

  1. Run the simulation:

    python your_script_name.py

    Replace your_script_name.py with the name of the Python file containing the simulation.

  2. View the output:

    • Histograms of results (raw, filtered, and normalized) will be displayed side-by-side in a single plot.
  3. Modify the circuit or parameters as needed in the script.


File Structure

  • <script_name>.py: Main script for quantum circuit construction, simulation, and result analysis.
  • requirements.txt: List of dependencies for the project.
  • README.md: Documentation for the repository (this file).

Example Outputs

  1. Raw Results: Histogram of all measurement outcomes.
  2. Filtered Results: Histogram filtered for cases where the ancilla qubit is 1.
  3. Normalized Results: Filtered histogram with counts normalized to sum to 1.

Dependencies

This project relies on the following Python packages:

  • qiskit
  • matplotlib
  • numpy

For the full list, refer to requirements.txt.


License

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


About

This repository contains a quantum circuit simulation using Qiskit. The project implements quantum gates, controlled operations, and ancilla-based filtering to analyze specific outcomes. The results are visualized as histograms, with options for filtering and normalization.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published