*************************
CUDA-Q by Example
*************************
.. _examples:


Examples that illustrate how to use CUDA-Q for application development are available in C++ and Python.

.. toctree::
   :maxdepth: 1

      Introduction <introduction.rst>
      Building Kernels <building_kernels.rst>
      Quantum Operations <quantum_operations.rst>
      Measuring Kernels <measuring_kernels.rst>
      Visualizing Kernels <../../examples/python/visualization.ipynb>
      Executing Kernels <executing_kernels.rst>
      Computing Expectation Values <expectation_values.rst>
      Multi-GPU Workflows <multi_gpu_workflows.rst>
      Optimizers & Gradients  <../../examples/python/optimizers_gradients.ipynb>
      Noisy Simulations <../../examples/python/noisy_simulations.ipynb>
      Pre-Trajectory Sampling with Batch Execution <ptsbe.rst>
      Detector Error Models <dem_from_kernel.rst>
      Constructing Operators <operators.rst>
      Performance Optimizations <../../examples/python/performance_optimizations.ipynb>
      Using Quantum Hardware Providers <hardware_providers.rst>
      When to Use sample vs. run <sample_vs_run.rst>
      Dynamics Examples <dynamics_examples.rst>
