Optimize memory peak for _preprocess_state_vector
in LightningTensor
#943
5.88% of diff hit (target 96.24%)
View this Pull Request on Codecov
5.88% of diff hit (target 96.24%)
Annotations
Check warning on line 224 in pennylane_lightning/lightning_tensor/_tensornet.py
codecov / codecov/patch
pennylane_lightning/lightning_tensor/_tensornet.py#L224
Added line #L224 was not covered by tests
Check warning on line 228 in pennylane_lightning/lightning_tensor/_tensornet.py
codecov / codecov/patch
pennylane_lightning/lightning_tensor/_tensornet.py#L227-L228
Added lines #L227 - L228 were not covered by tests
Check warning on line 230 in pennylane_lightning/lightning_tensor/_tensornet.py
codecov / codecov/patch
pennylane_lightning/lightning_tensor/_tensornet.py#L230
Added line #L230 was not covered by tests
Check warning on line 233 in pennylane_lightning/lightning_tensor/_tensornet.py
codecov / codecov/patch
pennylane_lightning/lightning_tensor/_tensornet.py#L233
Added line #L233 was not covered by tests
Check warning on line 236 in pennylane_lightning/lightning_tensor/_tensornet.py
codecov / codecov/patch
pennylane_lightning/lightning_tensor/_tensornet.py#L236
Added line #L236 was not covered by tests
Check warning on line 239 in pennylane_lightning/lightning_tensor/_tensornet.py
codecov / codecov/patch
pennylane_lightning/lightning_tensor/_tensornet.py#L238-L239
Added lines #L238 - L239 were not covered by tests
Check warning on line 244 in pennylane_lightning/lightning_tensor/_tensornet.py
codecov / codecov/patch
pennylane_lightning/lightning_tensor/_tensornet.py#L241-L244
Added lines #L241 - L244 were not covered by tests
Check warning on line 247 in pennylane_lightning/lightning_tensor/_tensornet.py
codecov / codecov/patch
pennylane_lightning/lightning_tensor/_tensornet.py#L246-L247
Added lines #L246 - L247 were not covered by tests
Check warning on line 252 in pennylane_lightning/lightning_tensor/_tensornet.py
codecov / codecov/patch
pennylane_lightning/lightning_tensor/_tensornet.py#L252
Added line #L252 was not covered by tests
Check warning on line 301 in pennylane_lightning/lightning_tensor/_tensornet.py
codecov / codecov/patch
pennylane_lightning/lightning_tensor/_tensornet.py#L301
Added line #L301 was not covered by tests