# How to save MPS data during the DMRG calculation

**URL:** <https://itensor.discourse.group/t/how-to-save-mps-data-during-the-dmrg-calculation/949>\
**Category:** ITensor Julia Questions\
**Tags:** julia, dmrg, mps\
**Created:** [June 18, 2023, 9:10am UTC](https://itensor.discourse.group/t/how-to-save-mps-data-during-the-dmrg-calculation/949 "2023-06-18T09:10:09Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Kat](https://yyz2.discourse-cdn.com/free1/user_avatar/itensor.discourse.group/kat/32/300_2.png) [@Kat](https://itensor.discourse.group/u/Kat)\
**Post date:** [June 18, 2023, 9:10am UTC](https://itensor.discourse.group/t/how-to-save-mps-data-during-the-dmrg-calculation/949/1 "2023-06-18T09:10:09Z")

</div>

Hello,  
I’m doing a DMRG calculation using Google Colab, but it sometimes fails due to the errors such as out of memory or a sudden disconnection. If the MPS data can be saved during the DMRG calculation, the calculation can be continued from that time. But I’m at a loss as to how to rewrite the code. Is there any good way to implement this?

Thank you.

---

_[View the full topic](https://itensor.discourse.group/t/how-to-save-mps-data-during-the-dmrg-calculation/949)._
