How to Use the Simulator

Quantum Lens provides a high-fidelity environment to bridge abstract theory with practical execution. The platform follows a research-standard pipeline: Design → Inspect → Simulate → Analyze.

2. Choosing Your Input Mode

Our Celestial Toolkit provides three specialized gateways to interact with quantum logic:

• Quantum Gate Builder: An intuitive visual interface. Drag icons onto timelines. Best for beginners and conceptualizing multi-qubit interactions.

• Quantum Code Visualizer: A dual-mode editor. Convert code into visual circuits with synchronized state visualization in real-time.

• QASM Visualizer: Load and analyze assembly-level OpenQASM files. Explore the specific state effects of complex, pre-written algorithms.

3. Designing Your Circuit

1
Add Qubits: Begin by defining your quantum register size. Your circuit grid maintains a list-of-lists representing qubits across time steps.
2
Place Gates: Drag standard single-qubit gates (H, X, Y, Z, S, T) onto the grid. Each placement appends an instruction to the circuit timeline.
3
Create Entanglement: Use the ● (Control) and ⊕ (Target) symbols to build CNOT gates. This links qubits together, a key requirement for creating Bell states.

4. Real-Time Inspection

As you build, the platform provides constant visual feedback:

  • Bloch Sphere Tracking: Watch as gates rotate the state vector around the sphere. Pure states stay on the surface (radius = 1).
  • Probabilistic Feedback: See instant probability calculations for measuring 0 or 1 based on the qubit's position on the sphere.

5. Simulation & Noise Settings

Before execution, configure your virtual hardware environment:

  • Set Shots: Adjust the number of measurements (Shots). Use 100-500 for quick testing, or more shorts for high precision research.
  • Noise Modeling: Toggle "Enable Simulation Noise" to introduce Depolarization (random flips), Amplitude Damping (energy decay), or Readout Errors.

6. Deep Data Analysis

After clicking Execute, the Qiskit Aer backend processes your circuit:

4
Classical Outcomes: Analyze the Counts Histogram to see the bit-string outcomes. Remember: Qiskit uses little-endian ordering (q0 is the rightmost bit).
5
Quantum State Analysis: The app performs a Partial Trace to isolate reduced density matrices for each qubit. This allows you to visualize "Mixed States" inside the Bloch sphere—a clear signature of entanglement.
The Purity Check: Check the Purity metric [Tr(ρ²)]. If it is exactly 1.0, your qubit is in a pure state. If it is less than 1.0, it is entangled with other qubits in your system.

7. Exporting Your Work

Quantum Lens allows you to bridge your browser simulations with research papers and actual hardware:

  • Save QASM: Export your visual design as code for use in IBM Quantum Composer or other research tools.
  • Visual Export: Save high-resolution images of your circuit diagrams and Bloch sphere states for documentation.