@@ -3575,7 +3575,7 @@ def _buildHamiltonian(self, progressOutput=False, debugOutput=False):
35753575 for ii in range (dimension ):
35763576 if progressOutput :
35773577 progress += (dimension - ii ) * 2 - 1
3578- print (f"{ progress / dimension ** 2 :.0%} " , end = "\r " )
3578+ print (f"{ progress / dimension ** 2 :.0%} " , end = "\r " )
35793579
35803580 # add diagonal element
35813581 self .bareEnergies [ii ] = (
@@ -3887,7 +3887,7 @@ def diagonalise(
38873887 with it :
38883888 for field , freq in it :
38893889 if progressOutput :
3890- print (f"{ (it .iterindex + 1 ) / it .itersize :.0%} " , end = "\r " )
3890+ print (f"{ (it .iterindex + 1 ) / it .itersize :.0%} " , end = "\r " )
38913891
38923892 # define the Shirley Hamiltonian for this combo of field and frequency
38933893 Hf = self .H0 + self .dT * freq + self .B * field
@@ -3930,11 +3930,13 @@ def diagonalise(
39303930 targetShifts [it .multi_index ] = targetEnergy - ev [evInd ]
39313931
39323932 if debugOutput :
3933- print (f"E field { field :.5f} V/m, Freq { freq * 1e-9 :.3f} GHz" )
39343933 print (
3935- f"Eigenvalue with largest overlap of target state { evInd } : { ev [ evInd ] * 1e-9 :.3f} GHz"
3934+ f"E field { field :.5f } V/m, Freq { freq * 1e-9 :.3f} GHz"
39363935 )
3937- print (f"Shift: { (targetEnergy - ev [evInd ])* 1e-9 :.3e} GHz" )
3936+ print (
3937+ f"Eigenvalue with largest overlap of target state { evInd } : { ev [evInd ] * 1e-9 :.3f} GHz"
3938+ )
3939+ print (f"Shift: { (targetEnergy - ev [evInd ]) * 1e-9 :.3e} GHz" )
39383940 print (f"Eigenstate: { egvector [evInd ]} " )
39393941
39403942 # squeeze out unused dimensions corresponding to single element inputs
@@ -4043,7 +4045,7 @@ def findDipoleCoupledStates(self, debugOutput=False):
40434045 if debugOutput :
40444046 print (f"Found { len (coupledStates ):d} dipole coupled states" )
40454047 print (
4046- f"Nearest dipole coupled state is detuned by: { np .abs (self .dipoleCoupledFreqs ).min ()* 1e-9 :.3f} GHz"
4048+ f"Nearest dipole coupled state is detuned by: { np .abs (self .dipoleCoupledFreqs ).min () * 1e-9 :.3f} GHz"
40474049 )
40484050
40494051 def _getRabiFrequency2_broadcast (
0 commit comments