.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "api/gallery/tight_binding/plot_irreps_of_graphene_bands.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_api_gallery_tight_binding_plot_irreps_of_graphene_bands.py: Irreducible Representations of the Bands: Why Graphene Has Dirac Points ========================================================================= L. P. Bouckaert, R. Smoluchowski and E. Wigner (1936) read a band structure through its symmetry. At a k-point :math:`\mathbf{k}`, the operations :math:`g` of the crystal with :math:`g\mathbf{k} = \mathbf{k}` (modulo a reciprocal lattice vector) form the *little group* of :math:`\mathbf{k}`; the Bloch states of one energy carry a representation of it, and that representation is irreducible unless the degeneracy is accidental. A two-dimensional irrep is a degeneracy that no perturbation respecting the symmetry can lift; one-dimensional irreps of different labels may cross along a line, equal ones must repel. Here the operations of graphene (:func:`~tbkit.symmetry.find_symmetries`: the twelve of C6v, about the centre of a hexagon) act on its two :math:`p_z` orbitals, and :func:`~tbkit.symmetry.irreps` decomposes the characters :math:`\chi(g) = \mathrm{Tr}\,V^\dagger U_g(\mathbf{k})V` of each level :math:`V` on the character tables. The Dirac point is the two-dimensional irrep E of the group C3v of K. A sublattice mass removes the mirrors of K and leaves C3: E splits into the two one-dimensional irreps ¹E and ²E, and a gap opens. .. GENERATED FROM PYTHON SOURCE LINES 24-39 .. code-block:: Python import numpy as np import matplotlib.pyplot as plt from tbkit import lattices from tbkit.kspace import KSpace, high_symmetry_path from tbkit.symmetry import find_symmetries, irreps def graphene(mass=0.): gra = KSpace(lattices.honeycomb()) gra.set_hopping([{'n': 1, 't': -1.}]) gra.set_onsite({'a': mass, 'b': -mass}) return gra .. GENERATED FROM PYTHON SOURCE LINES 40-44 The symmetry group ------------------ Twelve unitary operations, each also times time reversal; every one is a rotation or reflection about the centre of a hexagon. .. GENERATED FROM PYTHON SOURCE LINES 44-54 .. code-block:: Python gra = graphene() ops = find_symmetries(gra) unitary = [op for op in ops if not op.antiunitary] print(len(unitary), 'unitary:', [op.name for op in unitary]) assert len(unitary) == 12 and len(ops) == 24 massive = [op.name for op in find_symmetries(graphene(0.3)) if not op.antiunitary] print('with a mass:', massive) assert len(massive) == 6 and 'C6' not in massive .. rst-class:: sphx-glr-script-out .. code-block:: none 12 unitary: ['E', 'C6', 'C6^-1', 'C3', 'C3^-1', 'C2', 'M(150)', 'M(90)', 'M(120)', 'M(30)', 'M(0)', 'M(60)'] with a mass: ['E', 'C3', 'C3^-1', 'M(150)', 'M(90)', 'M(30)'] .. GENERATED FROM PYTHON SOURCE LINES 55-58 Irreps at the high-symmetry points ---------------------------------- The group of Gamma is C6v, that of M is C2v and that of K is C3v. .. GENERATED FROM PYTHON SOURCE LINES 58-67 .. code-block:: Python points, labels = high_symmetry_path(gra.lat) for k, name in zip(points[:3], ('Gamma', 'M', 'K')): res = irreps(gra, k, unitary) print('{:6s} {:4s} {} at E = {}'.format(name, res.group, res.labels, np.round(res.energies, 6))) dirac = irreps(gra, points[2], unitary) assert (dirac.group, dirac.labels, dirac.bands) == ('C3v', ['E'], [[0, 1]]) assert abs(dirac.energies[0]) < 1e-12 .. rst-class:: sphx-glr-script-out .. code-block:: none Gamma C6v ['A1', 'B2'] at E = [-3. 3.] M C2v ['B2', 'A1'] at E = [-1. 1.] K C3v ['E'] at E = [0.] .. GENERATED FROM PYTHON SOURCE LINES 68-70 The mass splits the Dirac point ------------------------------- .. GENERATED FROM PYTHON SOURCE LINES 70-76 .. code-block:: Python gapped = irreps(graphene(0.3), points[2]) print('with a mass, at K:', gapped.group, gapped.labels, np.round(gapped.energies, 6)) assert gapped.group == 'C3' and set(gapped.labels) == {'¹E', '²E'} np.testing.assert_allclose(gapped.energies, [-0.3, 0.3], atol=1e-12) .. rst-class:: sphx-glr-script-out .. code-block:: none with a mass, at K: C3 ['²E', '¹E'] [-0.3 0.3] .. GENERATED FROM PYTHON SOURCE LINES 77-83 Compatibility along the lines ----------------------------- Between two points the little group shrinks to the operations they share with the line; each level at the end decomposes into the levels on the line, with the same characters on those operations (compatibility relations). .. GENERATED FROM PYTHON SOURCE LINES 83-94 .. code-block:: Python for p, q, name in zip(points[:-1], points[1:], ('Gamma-M', 'M-K', 'K-Gamma')): line = irreps(gra, 0.5 * (p + q), unitary) for end in (p, q): res = irreps(gra, end, unitary) idx = [[o.name for o in res.operations].index(o.name) for o in line.operations] for lv, bands in enumerate(res.bands): sub = sum(line.characters[i] for i, b in enumerate(line.bands) if set(b) <= set(bands)) np.testing.assert_allclose(res.characters[lv, idx], sub, atol=1e-10) print(name, line.group, line.labels) .. rst-class:: sphx-glr-script-out .. code-block:: none Gamma-M Cs ["A'", "A'"] M-K Cs ["A''", "A'"] K-Gamma Cs ["A'", "A''"] .. GENERATED FROM PYTHON SOURCE LINES 95-98 Labelled band structures ------------------------ *plot_bands* writes the irrep of every level at the nodes of the path. .. GENERATED FROM PYTHON SOURCE LINES 98-119 .. code-block:: Python fig, axes = plt.subplots(1, 2, figsize=(9, 3.8), sharey=True) for ax, mass, title in zip(axes, (0., 0.3), ('graphene: C6v', 'with a sublattice mass: C3v')): model = graphene(mass) model.k_path(points, 60) for n in range(2): ax.plot(model.ks_dist, model.en[:, n], 'b', lw=2) group = [op for op in find_symmetries(model) if not op.antiunitary] for node, k in zip(model.nodes, points): res = irreps(model, k, group) for e, label in zip(res.energies, res.labels): ax.annotate(label, (node, e), xytext=(4, 3), textcoords='offset points', fontsize=12) for node in model.nodes: ax.axvline(node, color='k', lw=0.5) ax.set_xticks(model.nodes) ax.set_xticklabels(labels) ax.set_xlim(model.ks_dist[0], model.ks_dist[-1]) ax.set_title(title) axes[0].set_ylabel('$E$') fig.set_layout_engine('tight') .. image-sg:: /api/gallery/tight_binding/images/sphx_glr_plot_irreps_of_graphene_bands_001.png :alt: graphene: C6v, with a sublattice mass: C3v :srcset: /api/gallery/tight_binding/images/sphx_glr_plot_irreps_of_graphene_bands_001.png :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 120-121 The same labels from *plot_bands*, in one call. .. GENERATED FROM PYTHON SOURCE LINES 121-125 .. code-block:: Python gra.k_path(points, 60) fig2 = gra.plot_bands(node_labels=labels, irreps=unitary, fs=14) assert 'E' in [t.get_text() for t in fig2.axes[0].texts] .. image-sg:: /api/gallery/tight_binding/images/sphx_glr_plot_irreps_of_graphene_bands_002.png :alt: plot irreps of graphene bands :srcset: /api/gallery/tight_binding/images/sphx_glr_plot_irreps_of_graphene_bands_002.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.445 seconds) .. _sphx_glr_download_api_gallery_tight_binding_plot_irreps_of_graphene_bands.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_irreps_of_graphene_bands.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_irreps_of_graphene_bands.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_irreps_of_graphene_bands.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_