Peacock.jl: Photonic crystals in Julia
Abstract
S.J.P. acknowledges his studentship from the Centre for Doctoral Training on Theory and Simulation of Materials at Imperial College London funded by EPSRC Grant No. EP/L015579/1. V.G. acknowledges the Spanish Ministerio de Economia y Competitividad for financial support through the grant NANOTOPO (FIS2017-91413-EXP) and also the Ministerio de Ciencia, Innovación y Universidades through the grant MELODIA (PGC2018-095777-B-C21).
Full text
Peacock.jl: Photonic crystals in Julia Samuel J. Palmer1and Vincenzo Giannini2 1The Blackett Laboratory, Imperial College London, London, SW7 2AZ, UK 2Instituto de Estructura de la Materia (IEM), Consejo Superior de Investigaciones Científicas (CSIC), Serrano 121, 28006, Madrid, Spain DOI: 10.21105/joss.02678 Software •Review •Repository •Archive Editor: David P. Sanders Reviewers: •@mlxd •@nmoran Submitted: 22 May 2020 Published: 26 October 2020 License Authors of papers retain copyright and release the work under a Creative Commons Attribution 4.0 International License (CC BY 4.0). Summary Figure 1: The irridescent colours of peacocks arise from the nanoscale ‘photonic crystal’ structure of the feathers, rather than from pigmentation. The image of the peacock’s photonic crystal structure is reproduced from Zi et al. (2003), Copyright National Academy of Sciences. The Plane-wave Expansion Approach to Characterising Optical Crystals in k-space - otherwise known as Peacock.jl - is a Julia package for solving Maxwell’s equations using the Plane Wave Expansion Method (Rumpf, 2006) in order to predict the optical properties of photonic crystals. A photonic crystal is a material whose optical properties arise from its periodic structure (John, 1987; Yablonovitch, 1987), and Peacock.jl is named for the irridescent colours of peacock feathers which arise not from pigmentation but from the scattering of light by photonic crystals (Zi et al., 2003), as shown in Figure 1. The response of a photonic crystal is strongest when the periodicity of the structure is comparable to the wavelength of light. For visible light, photonic crystals are built from components that are just a few hundred nanometers in size. Advances in nanofabrication mean that ‘designer’ photonic crystals can now be manufactured for unprecedented control over the flow of light, with applications ranging from optical fibers (Knight, 2003) to photonic circuitry (Joannopoulos, Johnson, Winn, & Meade, 2008). Photonic crystals are also a promising platform for materials known as photonic topological insulators (Blanco de Paz, Vergniory, Bercioux, Garcıa-Etxarri, & Bradlyn, 2019; Wang, Guo, & Jiang, 2019; Wu & Hu, 2015). These are the photonic analogue of the electronic topological insulators (Bernevig, Hughes, & Zhang, 2006; Kane & Mele, 2005a,2005b) for which the 2016 Nobel Prize in Physics was awarded, and may allow light to be guided around defects, impurities, and sharp corners without backscattering (Rider et al., 2019). Statement of need Peacock.jl provides a user-friendly interface to calculate and analyse the eigensolutions of Maxwell’s equations for 2D photonic crystals, with support for non-orthogonal unit cells and Palmer et al., (2020). Peacock.jl: Photonic crystals in Julia. Journal of Open Source Software, 5(54), 2678. https://doi.org/10.21105/joss. 02678 1
inhomogeneous permittivity and/or permeability as in Figure 2a. As well as the common tools for analysing the eigensolutions, such as visualising the eigenmodes or the plotting the eigenvalues on band diagrams as in Figure 2b-e, Peacock.jl also includes built-in Wilson loop methods (Blanco de Paz et al., 2020; Palmer & Giannini, 2020) to study the topological properties of photonic crystals, as in Figure 2f-g. Although there already exists open-source software to study the eigensolutions of Maxwell’s equations for photonic crystals (Johnson & Joannopoulos, 2001) and to study the topological properties of electronic crystals (Gresch et al., 2017), to our knowledge Peacock.jl is the first open-source package for studying topological photonic crystals. Example usage 4 2 0 -2 -4 4 2 0 -2 -4 0.5 0 -0.5 0.0 2.5 5.0 7.5 10.0 Re[ϵ] Re[Ez] Re[Ez]Re[Ez] Frequency Wilson spectraWilson spectra g Bands 2-3 Bands 1-3 ab c d ef Figure 2: Example reproduction of a fragilely topological photonic crystal (Blanco de Paz et al., 2019). (a) Unit cell of the photonic crystal. (b-d) Out-of-plane component of the electric field of the first three transverse-magnetic polarised modes at Γ. (e) Band diagram of the transversemagnetic polarised modes. (f) The Wilson loop spectrum of bands 2-3 wind, indicating non-trivial band topology. (g) The Wilson loop spectrum of the full valence band space does not wind, indicating that bands 2-3 are ‘fragilely’ topological. Documentation Check the online documentation for the latest tutorials, how-to guides, and technical reference. Loading a crystal Here we demonstrate how to reproduce the examples of Figure 2, where we analyse a crystal with fragile topology (Blanco de Paz et al., 2019). For this example, we load the geometry, solver, and high symmetry points of the crystal from the Peacock.Zoo submodule using make_dePaz_frag. using Peacock, Peacock.Zoo, Parameters # Size of the plane-wave basis fourier_space_cutoff = 7 # Load the fragile photonic topological insulator Palmer et al., (2020). Peacock.jl: Photonic crystals in Julia. Journal of Open Source Software, 5(54), 2678. https://doi.org/10.21105/joss. 02678 2
#from paper by Blanco de Paz et al 2019 @unpack geometry, solver, polarisation = make_dePaz_frag(fourier_space_cutoff) # Visualise the geometry plot(geometry) If you model your own photonic crystal with Peacock.jl, you can add your geometry to the Zoo submodule to help others reproduce your work. Plotting the band diagram To plot a band diagram as in Figure 2e, we must first define the corners of the path through the Brillouin zone. We can use BrillouinZoneCoordinate to attach a label to our coordinates. ks = [ BrillouinZoneCoordinate(1/3,1/3,"K") BrillouinZoneCoordinate( 0,0,"Γ") BrillouinZoneCoordinate( 0,1/2,"M") ] Now we can use plot_band_diagram to sample along our k-path and produce our labelled band diagram. figure(figsize=(3,4)) plot_band_diagram(solver, ks, polarisation, bands=1:6, frequency_scale=1/2pi) ylabel("Frequency") ylim(0,0.6) Plotting the Wilson loop winding A winding in the Wilson loop spectrum can indicate a non-trivial topological phase (Blanco de Paz et al., 2020), with the Chern number given by the winding. First, we define the k-path we want to scan along, labelling the high symmetry points using BrillouinZoneCoordinate. # The Wilson loops are (by default) along b2, so we define a straight # path from Γ to Γ+b1 - we will scan along this path ks = [ BrillouinZoneCoordinate(0.0,0.0,"Γ"), BrillouinZoneCoordinate(0.5,0.0,"M"), BrillouinZoneCoordinate(1.0,0.0,"Γ") ] Now we can reproduce the Wilson loop winding of Figure 2f-g. # Wilson loop of all three valence bands figure(figsize=(3,2)) plot_wilson_loop_winding(solver, ks, polarisation, 1:3, dk_outer=0.25) title("Bands 1-3") Palmer et al., (2020). Peacock.jl: Photonic crystals in Julia. Journal of Open Source Software, 5(54), 2678. https://doi.org/10.21105/joss. 02678 3
# Wilson loop of just the second and third bands figure(figsize=(3,2)) plot_wilson_loop_winding(solver, ks, polarisation, 2:3, dk_outer=0.25) title("Bands 2&3") In the first figure, the Wilson loops through the Hilbert spaces of bands 2&3 wind with Chern numbers ±1, indicating some non-trivial topology. However, the second figure shows that including the (trivial) acoustic band in the Wilson loop calculation removes the topological winding, and consequently bands 2&3 are said to be ‘fragilely topological’ (Blanco de Paz et al., 2019). Acknowledgements S.J.P. acknowledges his studentship from the Centre for Doctoral Training on Theory and Simulation of Materials at Imperial College London funded by EPSRC Grant No. EP/L015579/1. V.G. acknowledges the Spanish Ministerio de Economia y Competitividad for financial support through the grant NANOTOPO (FIS2017-91413-EXP) and also the Ministerio de Ciencia, Innovación y Universidades through the grant MELODIA (PGC2018-095777-B-C21). References Bernevig, B. A., Hughes, T. L., & Zhang, S.-C. (2006). Quantum spin Hall effect and topological phase transition in HgTe quantum wells. Science,314(5806), 1757–1761. doi:10.1126/science.1133734 Blanco de Paz, M., Devescovi, C., Giedke, G., Saenz, J. J., Vergniory, M. G., Bradlyn, B., Bercioux, D., et al. (2020). Tutorial: Computing topological invariants in 2D photonic crystals. Advanced Quantum Technologies,3(2), 1900117. doi:10.1002/qute.201900117 Blanco de Paz, M., Vergniory, M. G., Bercioux, D., Garcıa-Etxarri, A., & Bradlyn, B. (2019). Engineering fragile topology in photonic crystals: Topological quantum chemistry of light. Physical Review Research,1(3), 032005. doi:10.1103/PhysRevResearch.1.032005 Gresch, D., Autes, G., Yazyev, O. V., Troyer, M., Vanderbilt, D., Bernevig, B. A., & Soluyanov, A. A. (2017). Z2Pack: Numerical implementation of hybrid Wannier centers for identifying topological materials. Physical Review B,95(7), 075146. doi:10.1103/PhysRevB.95. 075146 Joannopoulos, J. D., Johnson, S. G., Winn, J. N., & Meade, R. D. (2008). Photonic Crystals: Molding the flow of light (2nd ed.). Princeton University Press, Princeton, NJ. John, S. (1987). Strong localization of photons in certain disordered dielectric superlattices. Physical Review Letters,58(23), 2486. doi:10.1103/PhysRevLett.58.2486 Johnson, S. G., & Joannopoulos, J. D. (2001). Block-iterative frequency-domain methods for Maxwell’s equations in a planewave basis. Optics Express,8(3), 173–190. doi:10.1364/ OE.8.000173 Kane, C. L., & Mele, E. J. (2005a). Z2Topological order and the quantum spin Hall effect. Physical Review Letters,95(14), 146802. doi:10.1103/PhysRevLett.95.146802 Kane, C. L., & Mele, E. J. (2005b). Quantum spin Hall effect in graphene. Physical Review Letters,95(22), 226801. doi:10.1103/PhysRevLett.95.226801 Palmer et al., (2020). Peacock.jl: Photonic crystals in Julia. Journal of Open Source Software, 5(54), 2678. https://doi.org/10.21105/joss. 02678 4
Knight, J. C. (2003). Photonic crystal fibres. Nature,424(6950), 847–851. doi:10.1038/ nature01940 Palmer, S. J., & Giannini, V. (2020). Berry bands and pseudo-spin of topological photonic phases. Retrieved from http://arxiv.org/abs/2009.07033 Rider, M. S., Palmer, S. J., Pocock, S. R., Xiao, X., Arroyo Huidobro, P., & Giannini, V. (2019). A perspective on topological nanophotonics: Current status and future challenges. Journal of Applied Physics,125(12), 120901. doi:10.1063/1.5086433 Rumpf, R. (2006). Design and optimization of nano-optical elements by coupling fabrication to optical behavior (PhD thesis). University of Central Florida. Wang, H.-X., Guo, G.-Y., & Jiang, J.-H. (2019). Band topology in classical waves: Wilsonloop approach to topological numbers and fragile topology. New Journal of Physics,21(9), 093029. doi:10.1088/1367-2630/ab3f71 Wu, L.-H., & Hu, X. (2015). Scheme for achieving a topological photonic crystal by using dielectric material. Physical Review Letters,114(22), 223901. doi:10.1103/PhysRevLett. 114.223901 Yablonovitch, E. (1987). Inhibited spontaneous emission in solid-state physics and electronics. Physical Review Letters,58(20), 2059. doi:10.1007/978-1-4615-1963-8_41 Zi, J., Yu, X., Li, Y., Hu, X., Xu, C., Wang, X., Liu, X., et al. (2003). Coloration strategies in peacock feathers. Proceedings of the National Academy of Sciences,100(22), 12576– 12578. doi:10.1073/pnas.2133313100 Palmer et al., (2020). Peacock.jl: Photonic crystals in Julia. Journal of Open Source Software, 5(54), 2678. https://doi.org/10.21105/joss. 02678 5