========
Examples
========

Collection of practical examples demonstrating QuScope capabilities.

.. toctree::
   :maxdepth: 2
   :caption: Code Examples:
   
   basic_examples
   advanced_examples
   integration_examples
   quantum_ctem

🧪 **Basic Examples**
=====================

Simple examples to get you started:

- **Quantum Image Encoding**: Encode a simple image into quantum circuits
- **Backend Setup**: Configure quantum simulators and hardware
- **Basic Visualization**: Plot quantum circuits and measurement results

🚀 **Advanced Examples** 
========================

More complex applications:

- **Quantum CTEM Simulation**: Simulate Conventional Transmission Electron Microscopy using quantum circuits
- **Quantum Edge Detection**: Detect edges in images using quantum algorithms
- **EELS Spectrum Analysis**: Process electron energy loss spectroscopy data
- **Quantum Machine Learning**: Train quantum models on microscopy data

🔗 **Integration Examples**
===========================

Real-world integration scenarios:

- **Workflow Automation**: Automated processing pipelines
- **Performance Benchmarking**: Compare quantum vs classical approaches  
- **Hardware Deployment**: Deploy algorithms on real quantum computers

📖 **Example Format**
=====================

Each example includes:

- **Problem Description**: What we're trying to solve
- **Code Implementation**: Complete, runnable code
- **Explanation**: Step-by-step breakdown
- **Results**: Expected outputs and interpretation
- **Extensions**: Ideas for further exploration

🔧 **Running Examples**
=======================

All examples are designed to run with a basic QuScope installation:

.. code-block:: bash

   pip install quscope
   
   # Optional: Install additional dependencies for visualization
   pip install matplotlib jupyter

📥 **Download Examples**
========================

You can download all examples from the `GitHub repository <https://github.com/robertoreis/quantum_algo_microscopy/tree/main/examples>`_.

Or clone the entire repository:

.. code-block:: bash

   git clone https://github.com/robertoreis/quantum_algo_microscopy.git
   cd quantum_algo_microscopy/examples
