2929
3030os .environ ['NUMPY_EXPERIMENTAL_ARRAY_FUNCTION' ] = '0'
3131
32- class TIBaseBackend : # ToDo : translate this numpy code into tensornetwork
32+ class TIBaseBackend : # TODO : translate this numpy code into tensornetwork
3333 """
3434 Backend class for TEMPO.
3535
@@ -195,7 +195,7 @@ def _truncate_left(self, k) -> int:
195195
196196
197197 def initialise (self , step = None , mps = None ) -> Tuple [int , ndarray ]:
198- """ ToDo """
198+ """ TODO """
199199 if mps is not None :
200200 self ._mps = mps
201201 self ._step = step
@@ -216,7 +216,7 @@ def initialise(self, step=None, mps=None) -> Tuple[int, ndarray]:
216216 self ._step = 1
217217 return self ._step , self .data [- 1 ]
218218
219- def compute_step (self ) -> Tuple [int , ndarray ]: # ToDo : make readout optional
219+ def compute_step (self ) -> Tuple [int , ndarray ]: # TODO : make readout optional
220220 """
221221 Takes a step in the TEMPO tensor network computation.
222222
@@ -264,7 +264,7 @@ def compute_step(self) -> Tuple[int, ndarray]: # ToDo: make readout optional
264264 # turn east leg at last site into north leg at new last site
265265 self ._mps .append (self ._cap )
266266
267- if len (self ._mps ) > self ._kmax + 1 : # ToDo : check this
267+ if len (self ._mps ) > self ._kmax + 1 : # TODO : check this
268268 # remove first site, turn into matrix
269269 end = self ._mps .pop (0 ).sum (1 )
270270 # np.dot into new first site
@@ -378,7 +378,7 @@ def step(self) -> int:
378378 return self ._step
379379
380380 def initialize_mps_mpo (self ):
381- """ToDo """
381+ """TODO """
382382 self ._initial_state = copy (self ._initial_state ).reshape (- 1 )
383383
384384 self ._super_u = op .left_right_super (
@@ -588,7 +588,7 @@ def compute_system_step(self, current_step, prop_1, prop_2) -> ndarray:
588588
589589class TempoBackend (BaseTempoBackend ):
590590 """
591- ToDo
591+ TODO
592592 """
593593
594594 def __init__ (
@@ -620,7 +620,7 @@ def __init__(
620620
621621 def initialize (self ) -> Tuple [int , ndarray ]:
622622 """
623- ToDo
623+ TODO
624624 """
625625 self ._step = 0
626626 self .initialize_mps_mpo ()
@@ -629,7 +629,7 @@ def initialize(self) -> Tuple[int, ndarray]:
629629
630630 def compute_step (self ) -> Tuple [int , ndarray ]:
631631 """
632- ToDo
632+ TODO
633633 """
634634 self ._step += 1
635635 prop_1 , prop_2 = self ._propagators (self ._step - 1 )
0 commit comments