This project is a simple interactive Python application built with Qiskit that allows users to explore basic quantum gates and their effects on quantum states.
Users can select a Pauli gate, choose the number of qubits, and visualize the results using different quantum representations such as the Bloch Sphere, histograms, and circuits.
-
Supports Pauli Gates:
- Pauli-X (X)
- Pauli-Y (Y)
- Pauli-Z (Z)
-
Supports multiple qubits
-
Interactive menu-based selection
-
Multiple visualization and analysis options
After selecting a quantum gate and the number of qubits, the user can choose from the following options:
-
Bloch Sphere Visualization
Visualizes the quantum state of a single qubit on the Bloch Sphere. -
Histogram
Displays the measurement probabilities of the quantum state. -
Operator
Shows the matrix representation of the selected quantum gate. -
Circuit Visualization
Displays the quantum circuit diagram using Qiskitβs circuit drawer. -
Measurement Circuit
Adds measurement operations to the circuit and simulates the measurement output. -
Exit
Exits the program.
- Select a Pauli Gate (X, Y, or Z)
- Select the number of qubits
- Choose a visualization or analysis option
- View results
- Repeat or exit the program
- Python 3.x
- Qiskit
- Qiskit Aer
- Matplotlib
Make sure you have Python installed, then install the required dependencies:
pip install qiskit qiskit-aer matplotlib