.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "api/gallery/topology/plot_chern_number_from_rotation_eigenvalues.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_topology_plot_chern_number_from_rotation_eigenvalues.py: Chern Numbers from Rotation Eigenvalues ======================================= C. Fang, M. J. Gilbert and B. A. Bernevig (2012) showed that in a crystal with an n-fold rotation :math:`C_n` the Chern number of the occupied bands is fixed modulo :math:`n` by their rotation eigenvalues at a few points, without any integral of the Berry curvature: .. math:: e^{2\pi i C/n} = \prod_{\mathbf{k}_*}\ \prod_{m\in\mathrm{occ}} \lambda_m\big(\mathbf{k}_*, C_n^{s}\big)\, , over one point :math:`\mathbf{k}_*` of each orbit of rotation-invariant momenta, with the power :math:`C_n^s` that keeps it: for :math:`C_4` the :math:`C_4` eigenvalues at :math:`\Gamma` and M and the :math:`C_2` eigenvalue at X, :math:`i^C = \xi(\Gamma)\,\xi(\mathrm{M})\,\zeta(\mathrm{X})`; for :math:`C_3`, the eigenvalues at :math:`\Gamma`, K and K'. :func:`~tbkit.symmetry.rotation_indicator` computes it. It is compared with :meth:`~tbkit.kspace.KSpace.chern_number` (an integral over a :math:`30\times30` mesh) across the phase diagrams of the Qi-Wu-Zhang model (:math:`C_4`, two orbitals on one site) and of the Haldane model (:math:`C_3`, and :math:`C_6` without a sublattice mass). .. GENERATED FROM PYTHON SOURCE LINES 27-59 .. code-block:: Python import numpy as np import matplotlib.pyplot as plt from tbkit import lattices from tbkit.kspace import KSpace, PAULI from tbkit.lattice import Lattice from tbkit.symmetry import Operation, find_symmetries, rotation, rotation_indicator def qwz(m): r'''H = sin kx sigma_x + sin ky sigma_y + (m + cos kx + cos ky) sigma_z.''' lat = Lattice(unit_cell=[{'tag': 'a', 'r0': (0., 0.)}, {'tag': 'b', 'r0': (0., 0.)}], prim_vec=[(1., 0.), (0., 1.)]) ks = KSpace(lat) hops = [] for R, s in (((1, 0), PAULI['x']), ((0, 1), PAULI['y'])): t = s / 2j + PAULI['z'] / 2 hops += [{'i': i, 'j': j, 'R': R, 't': t[i, j]} for i in range(2) for j in range(2) if t[i, j] != 0] ks.set_hopping(hops) ks.set_onsite({'a': m, 'b': -m}) return ks def haldane(t2, mass): ks = KSpace(lattices.honeycomb()) ks.set_hopping([{'i': 0, 'j': 1, 'R': R, 't': 1.} for R in [(0, 0), (-1, 0), (0, -1)]]) for R in [(0, 1), (-1, 0), (1, -1)]: ks.set_hopping([{'i': 0, 'j': 0, 'R': R, 't': 1j * t2}, {'i': 1, 'j': 1, 'R': R, 't': -1j * t2}]) ks.set_onsite({'a': mass, 'b': -mass}) return ks .. GENERATED FROM PYTHON SOURCE LINES 60-64 The rotation of the Qi-Wu-Zhang model ------------------------------------- :math:`C_4` sends :math:`(\sigma_x, \sigma_y)` to :math:`(\sigma_y, -\sigma_x)`: it acts on the two orbitals as ``diag(1, i)``, with :math:`C_4^4 = 1`. .. GENERATED FROM PYTHON SOURCE LINES 64-77 .. code-block:: Python C4 = Operation(rotation(np.pi / 2), orbitals=np.diag([1., 1j])) assert qwz(-1.).symmetry_error(C4) < 1e-12 masses = np.linspace(-2.9, 2.9, 30) # gapped: avoids m = 0, +-2 c_qwz = [qwz(m).chern_number(0) for m in masses] c4_qwz = [rotation_indicator(qwz(m), C4, [0]) for m in masses] c2_qwz = [rotation_indicator(qwz(m), C4 ** 2, [0]) for m in masses] for c, c4, c2 in zip(c_qwz, c4_qwz, c2_qwz): assert round(c) % 4 == c4 and round(c) % 2 == c2 print('QWZ C:', [int(round(c)) for c in c_qwz]) print(' C mod 4 from C4 eigenvalues:', c4_qwz) .. rst-class:: sphx-glr-script-out .. code-block:: none QWZ C: [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, 0, 0, 0] C mod 4 from C4 eigenvalues: [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0] .. GENERATED FROM PYTHON SOURCE LINES 78-82 Haldane model ------------- :math:`C_3` about the centre of a hexagon, found by :func:`~tbkit.symmetry.find_symmetries`; :math:`C_6` as well without a mass. .. GENERATED FROM PYTHON SOURCE LINES 82-93 .. code-block:: Python phases = [(0.2, 0.), (-0.2, 0.), (0.2, 0.5), (0.2, 1.5), (-0.1, 0.2), (0.1, 1.)] for t2, mass in phases: model = haldane(t2, mass) ops = {op.name: op for op in find_symmetries(model, antiunitary=False)} c = int(round(model.chern_number(0))) c3 = rotation_indicator(model, ops['C3'], [0]) c6 = rotation_indicator(model, ops['C6'], [0]) if 'C6' in ops else None print('Haldane t2 = {:5.2f}, M = {:4.2f}: C = {:2d}, C mod 3 = {}, C mod 6 = {}'.format(t2, mass, c, c3, c6)) assert c3 == c % 3 and (c6 is None or c6 == c % 6) .. rst-class:: sphx-glr-script-out .. code-block:: none Haldane t2 = 0.20, M = 0.00: C = 1, C mod 3 = 1, C mod 6 = 1 Haldane t2 = -0.20, M = 0.00: C = -1, C mod 3 = 2, C mod 6 = 5 Haldane t2 = 0.20, M = 0.50: C = 1, C mod 3 = 1, C mod 6 = None Haldane t2 = 0.20, M = 1.50: C = 0, C mod 3 = 0, C mod 6 = None Haldane t2 = -0.10, M = 0.20: C = -1, C mod 3 = 2, C mod 6 = None Haldane t2 = 0.10, M = 1.00: C = 0, C mod 3 = 0, C mod 6 = None .. GENERATED FROM PYTHON SOURCE LINES 94-96 The same Chern numbers, two ways -------------------------------- .. GENERATED FROM PYTHON SOURCE LINES 96-106 .. code-block:: Python fig, ax = plt.subplots(figsize=(6, 3.4)) ax.plot(masses, np.round(c_qwz).astype(int) % 4, 'ob', ms=8, label=r'$C\ \mathrm{mod}\ 4$ (Berry curvature)') ax.plot(masses, c4_qwz, 'xr', ms=9, mew=2, label=r'from the $C_4$ eigenvalues') ax.set_xlabel('$m$') ax.set_ylabel(r'$C\ \mathrm{mod}\ 4$') ax.set_yticks(range(4)) ax.legend(loc='center right') ax.set_title('Qi-Wu-Zhang model') fig.set_layout_engine('tight') .. image-sg:: /api/gallery/topology/images/sphx_glr_plot_chern_number_from_rotation_eigenvalues_001.png :alt: Qi-Wu-Zhang model :srcset: /api/gallery/topology/images/sphx_glr_plot_chern_number_from_rotation_eigenvalues_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 1.648 seconds) .. _sphx_glr_download_api_gallery_topology_plot_chern_number_from_rotation_eigenvalues.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_chern_number_from_rotation_eigenvalues.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_chern_number_from_rotation_eigenvalues.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_chern_number_from_rotation_eigenvalues.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_