---
title: Tutorials and Talks
weight: 40
---

A list of tutorials by the HEIR community. To add to this list, open an issue or
submit a pull request
[on GitHub](https://github.com/google/heir/blob/main/docs/content/en/docs/tutorials.md).

## Talks

- [HEIR: A foundation for FHE compilers (FHE.org 2023-10 meetup)](https://www.youtube.com/watch?v=kqDFdKUTNA4)
- [How to Write Optimizations in HEIR (FHE.org 2024 conference tutorial)](https://www.youtube.com/watch?v=ne5D_kqlxYg&list=PLnbmMskCVh1fZy00EZQnFSezctvwYmlRM&index=4)
  ([slides](https://docs.google.com/presentation/d/1zRgrkWgLn4FxAWWDTQb8KnS-pqtUbST1AIR8bT_a-E8/edit?usp=sharing))
- [Updates on the HEIR Compiler Project (FHE.org 2025 conference talk)](https://www.youtube.com/watch?v=6JPwpTOcydM)
  ([slides](https://docs.google.com/presentation/d/1nKj0i0tyBSGUAI-tYMUDeji-EgqCj4PBrgw_NgMb3fM/edit?usp=sharing))

## MLIR tutorials

- [MLIR for Beginners by Jeremy Kun](https://github.com/j2kun/mlir-tutorial/)
- [YouTube playlist of useful MLIR talks for HEIR developers](https://www.youtube.com/playlist?list=PLv9xz1VZ_qfFqpSAEgay96kxEGS81_NYq)

## FHE math

- [A High Level Technical Overview of Fully Homomorphic Encryption by Jeremy Kun](https://www.jeremykun.com/2024/05/04/fhe-overview/)
- [Packing matrix-vector multiplication in FHE by Jeremy Kun](https://www.jeremykun.com/2024/09/06/packing-matrix-vector-multiplication-in-fhe/)
- [Shift Networks by Jeremy Kun](https://www.jeremykun.com/2024/09/02/shift-networks/)
- [Estimating the Security of Ring Learning With Errors by Cathie Yun](https://jeremykun.com/2022/12/28/estimating-the-security-of-ring-learning-with-errors-rlwe/)
- [Key Switching in LWE by Jeremy Kun](https://jeremykun.com/2022/08/29/key-switching-in-lwe/)
- [Modulus Switching in LWE by Jeremy Kun](https://jeremykun.com/2022/07/16/modulus-switching-in-lwe/)
- [Negacyclic Polynomial Multiplication by Jeremy Kun](https://jeremykun.com/2022/12/09/negacyclic-polynomial-multiplication/)
- [Sample Extraction from RLWE to LWE by Jeremy Kun](https://jeremykun.com/2023/02/27/sample-extraction-from-rlwe-to-lwe/)
- [The Gadget Decomposition in FHE by Jeremy Kun](https://jeremykun.com/2021/12/11/the-gadget-decomposition-in-fhe/)

<!-- mdformat global-off -->
