Skip to content

Calculate the Band Structure with HSE

1. Introduction

Calculate the electronic band structure of a material with the Heyd-Scuseria-Ernzerhof (HSE) hybrid functional in Quantum ESPRESSO, with or without a relaxation first.

2. Open the notebook

In JupyterLite, the notebook is made/workflows/band_structure_hse.ipynb, entry 4.2.2 "Band Structure (HSE)" of made/workflows/Introduction.ipynb.

3. Set the parameters

Cell 1.2 holds the material, workflow and compute parameters:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from datetime import datetime
from mat3ra.ide.compute import QueueName

# 2. Auth and organization parameters
ORGANIZATION_NAME = None

# 3. Material parameters
FOLDER = "../uploads"
MATERIAL_NAME = "Silicon"

# 4. Workflow parameters
CALCULATION_TYPE = "band_structure_hse"

APPLICATION_NAME = "espresso"
ADD_RELAXATION = False

WORKFLOW_SEARCH_TERM = f"{CALCULATION_TYPE}.json"
MY_WORKFLOW_NAME = "Band Structure HSE" + (" (relax)" if ADD_RELAXATION else "")

# Model parameters
MODEL_SUBTYPE = "hybrid"  # HSE hybrid functional

# 5. Compute parameters
CLUSTER_NAME = None  # specify full or partial name i.e. "cluster-001" to select
QUEUE_NAME = QueueName.D
PPN = 1

# 6. Job parameters
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M")
POLL_INTERVAL = 30  # seconds

MODEL_SUBTYPE = "hybrid", with FUNCTIONAL = "hse06" in cell 1.3, sets the hybrid functional.

The overview explains the account, material, workflow, compute and job parameters.

Cell 1.3 holds the method parameters:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Method parameters
PSEUDOPOTENTIAL_TYPE = "us"   # ultrasoft pseudopotentials (standard for HSE in QE)
FUNCTIONAL = "hse06"

# K-grids and k-path
RELAXATION_KGRID = None   # e.g. [4, 4, 4]
SCF_KGRID = None          # [1, 1, 1]
KPATH = None              # e.g. [{"point": "Γ", "steps": 10},{"point": "M", "steps": 10}, {"point": "K", "steps": 10}, {"point": "Γ", "steps": 10}]
QGRID = None              # [1, 1, 1]
# Energy cutoffs
ECUTWFC = 40
ECUTRHO = 200

SCF_KGRID is required: it sets both the k-grid and the exchange q-grid (nqx1, nqx2, nqx3) of the HSE step, which Quantum ESPRESSO requires to match, and has to be a uniform Gamma-centered grid. QGRID replaces the q-grid when set. The overview explains the model, k-point and cutoff and engine input parameters.

4. Run and read the result

Run the notebook with Run > Run All and log in when it asks, as in Authentication in JupyterLite.

After the job finishes, section 8 plots the band structure.

5. Interactive JupyterLite notebook

The interactive JupyterLite notebook for calculating the band structure with the HSE functional can be accessed below.

Band Structure with Quantum ESPRESSO (HSE) calculates the HSE band structure from the web interface.