
plt . hist ( gap _hi sto gram , bins =100 , co lor = ' navy ' , alpha =0.7 , ed gecol or = ' bl ack ' , li ne wid th
=0.5)
plt . axv lin e ( x =0 , color = ' red ' , l in est yl e = ' -- ' , linew idth =2.5 , label = ' Gap = 0 ( only at $\
Gamma$ ) ' )
plt . xlab el (r '$ \ min \ sqrt {\ mathrm { eig }( D ^\ dagge r D) }$ [1/ a ] ' , f ontsi ze =14)
plt . ylab el ( ' Cou nt ' , fon ts ize =14)
plt . t itle ( f ' Figure 2: Dense BZ Scan ( $ 64 ^3 $ = 262 ,144 k- po ints ) \ nMi nimum gap = { mi n_g ap
:.4 f }/ a at $ \ Gam ma$ only . No addit io nal z eros . ' , fo nts ize =14 , fo nt weigh t = ' bold ' )
plt . lege nd ( f ontsi ze =12)
plt . grid ( True , alp ha = 0.3)
plt . ti gh t_lay ou t ()
plt . sav efi g ( ' fig ure 2 . png ')
plt . c lose ()
print ( Save d f igu re2 . png )
# == = == === == = == === == = == = == === == = == === == = == = == === == = == === == = == =
# 3. A BEL IAN GAUGE FIELD TEST & FIGU RE 3
# == = == === == = == === == = == = == === == = == === == = == = == === == = == === == = == =
print ( f \ n { '= ' * 60} )
print ( 3. AB ELI AN GAUG E FI ELD TEST -> Ge ne rat in g fig ure 3 . png )
print ( f { '= ' * 60} )
plt . figu re ( f igs ize =(10 , 6) , dpi =300)
A_vals = [0 , 0.05 , 0.1 , 0.2 , 0.5 , 1.0 , 2.0]
colors = plt . cm . vi rid is ( np . lin spa ce (0 , 1, len ( A_vals ) ))
for idx , A_ val in enum erate ( A_v als ) :
A_f iel d = np . array ([ A_val /a , 0 , 0])
lin k_p h = np . array ([ np . dot ( A_field , n ) for n in n_vecs ])
# Print gap at Gamma to termi nal
gap _g amm a = mi n_ si ng ul ar _v alu e ( Gamma , li nk_ ph )
print ( f A = { A_val :.2 f }/ a | Min gap at Gamma = { ga p_gam ma :.4 f} )
# Cal cul at e path for plot
sv_ pat h = np . array ([ mi n_ si ng ul ar _va lu e (k , lin k_p h ) for k in k_path ])
plt . plot ( sv_path , labe l = f ' A ={ A_ val :.2 f }/ a ' , c olor = colo rs [ idx ] , li newid th =1.5)
plt . xtic ks ( ticks , [ r '$ \ G amma $ ' , 'X ' , ' W ' , 'L ' , r '$ \ G amma $ ' , 'K ' ] , fo nts ize =16)
plt . xlim (0 , len ( sv_path ) -1)
plt . ylim ( bot tom =0)
plt . grid ( True , alp ha = 0.3)
plt . ylab el (r '$ \ min \ sqrt {\ mathrm { eig }( D ^\ dagge r D) }$ [1/ a ] ' , f ontsi ze =14)
plt . t itle ( ' F igur e 3: Gap Pe rs is tence Under U (1) Ba ckgro un d F ield \ nSpec tral gap at zone
bound ar ies surviv es gauge field in se rti on ' , fon tsi ze =14 , fo nt wei gh t = ' bold ' )
plt . lege nd ( f ontsi ze =10 , loc = ' upper right ' )
plt . ti gh t_lay ou t ()
plt . sav efi g ( ' fig ure 3 . png ')
plt . c lose ()
print ( Save d f igu re3 . png )
# == = == === == = == === == = == = == === == = == === == = == = == === == = == === == = == =
# 4. C HIRA L S YMMET RY CHECK
# == = == === == = == === == = == = == === == = == === == = == = == === == = == === == = == =
print ( f \ n { '= ' * 60} )
print ( 4. CHIRAL S YMM ETRY AN ALY SIS )
print ( f { '= ' * 60} )
print ( \ n ||{ gamma_5 , D (k ) }|| at high - s ymm etry poi nts : )
max _norm = 0.0
for label , kpt in [( ' Gam ma ' , G amma ) , ( ' X ' , X) , ( 'W ' , W ) , ( ' L ' , L) , ( 'K ' , K ) ]:
D = D_SSM ( kpt )
ant icomm = gam ma_ 5 @ D + D @ g amm a_5
norm = np . lin alg . no rm ( an ticom m )
if nor m > m ax_no rm : max _no rm = norm
print ( f { la bel }: ||{{ gamma_5 , D }}|| = { norm :.2 e } )
print ( \ n Conc lu sio n : )
if max _no rm < 1e - 10:
print ( Exact ch iral s ymm etry is PRES ERVED at f inite lat tic e s pac ing 'a '. )
print ( { gamma_5 , D_SS M ( k )} = 0 id en ti cally ( ma chi ne pr ec isi on ) . )
else :
print ( WAR NIN G : Ch iral s ymm etry bro ken . )
10