{ "cells": [ { "cell_type": "markdown", "id": "50bbc308", "metadata": {}, "source": [ "# 5. Plotting the spectral function" ] }, { "cell_type": "markdown", "id": "e8d5feac", "metadata": {}, "source": [ "In this tutorial we go through the steps to plot tight-binding bands from a Wannier90 Hamiltonian and spectralfunctions with analytically continued (real-frequency) self-energies obtained from DMFT." ] }, { "cell_type": "code", "execution_count": 1, "id": "0d69c4d5", "metadata": {}, "outputs": [], "source": [ "%matplotlib inline\n", "from IPython.display import display\n", "from IPython.display import Image\n", "import numpy as np\n", "import importlib, sys\n", "import matplotlib.pyplot as plt\n", "from matplotlib import cm\n", "from timeit import default_timer as timer\n", "\n", "from ase.io.espresso import read_espresso_in\n", "\n", "from h5 import HDFArchive\n", "from solid_dmft.postprocessing import plot_correlated_bands as pcb" ] }, { "cell_type": "markdown", "id": "c3ce4f44", "metadata": {}, "source": [ "## 1. Configuration" ] }, { "cell_type": "markdown", "id": "42a860c4", "metadata": {}, "source": [ "The script makes use of the `triqs.lattice.utils` class, which allows to set up a tight-binding model based on a Wannier90 Hamiltonian. Additionally, you may upload a self-energy in the usual `solid_dmft` format to compute correlated spectral properties.\n", "Currently, the following options are implemented:\n", "