This project demonstrates basic quantum computing concepts using Qiskit, including a simple quantum circuit and a quantum teleportation circuit.
To run this project, you need Python 3.7 or later. Follow these steps to set up the project:
-
Clone this repository: https://github.com/SuperSonnix71/Quantum_circuit_simulation cd Quantum_circuit_simulation
-
(Optional) Create and activate a virtual environment: python -m venv venv source venv/bin/activate # On Windows, use venv\Scripts\activate
-
Install the required packages: pip install qiskit matplotlib
Run the main script: python quantum_circuits.py
This will execute both the simple quantum circuit and the quantum teleportation circuit, display results, and save visualizations.
- Simulates a simple two-qubit quantum circuit demonstrating superposition and entanglement.
- Implements and simulates a quantum teleportation circuit.
- Generates and saves histograms of measurement outcomes.
- Creates and saves visual representations of quantum circuits.
- Displays ASCII art representations of circuits in the console.
The script produces the following output:
-
Console output:
- Measurement counts for the simple circuit
- ASCII representation of the simple quantum circuit
- Teleportation results
- ASCII representation of the quantum teleportation circuit
-
Image files (saved in the project directory):
measurement_histogram.png
: Histogram of the simple circuit outcomescircuit_diagram.png
: Visual diagram of the simple quantum circuitteleportation_histogram.png
: Histogram of the teleportation circuit outcomesteleportation_circuit_diagram.png
: Visual diagram of the teleportation circuit
Contributions to this project are welcome! Please fork the repository and submit a pull request with your changes.
This project is open source and available under the MIT License.