Here’s a template for your repository's README.md
:
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.
- 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
.
- Python 3.8+
pip
package manager
-
Clone this repository:
git clone https://github.com/your-repo-name.git cd your-repo-name
-
Install dependencies:
pip install -r requirements.txt
-
Run the simulation:
python your_script_name.py
Replace
your_script_name.py
with the name of the Python file containing the simulation. -
View the output:
- Histograms of results (raw, filtered, and normalized) will be displayed side-by-side in a single plot.
-
Modify the circuit or parameters as needed in the script.
<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).
- Raw Results: Histogram of all measurement outcomes.
- Filtered Results: Histogram filtered for cases where the ancilla qubit is
1
. - Normalized Results: Filtered histogram with counts normalized to sum to 1.
This project relies on the following Python packages:
qiskit
matplotlib
numpy
For the full list, refer to requirements.txt
.
This project is licensed under the MIT License. See the LICENSE
file for details.