# transfer the idmrg wave function into the initial wave function

**URL:** <https://itensor.discourse.group/t/transfer-the-idmrg-wave-function-into-the-initial-wave-function/574>\
**Category:** DMRG and Numerical Methods\
**Tags:** cpp, dmrg\
**Created:** [January 2, 2023, 5:49am UTC](https://itensor.discourse.group/t/transfer-the-idmrg-wave-function-into-the-initial-wave-function/574 "2023-01-02T05:49:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hui-yang2020](https://yyz2.discourse-cdn.com/free1/user_avatar/itensor.discourse.group/hui-yang2020/32/186_2.png) [@hui-yang2020](https://itensor.discourse.group/u/hui-yang2020)\
**Post date:** [January 2, 2023, 5:49am UTC](https://itensor.discourse.group/t/transfer-the-idmrg-wave-function-into-the-initial-wave-function/574/1 "2023-01-02T05:49:07Z")

</div>

I save the wave function \psi generated by idmrg, and then import it as an initial wave function. But it said error when I am running the new idmrg. So How can I transfer the wave function generated by idmrg into the MPS I want?

---

<div class="post-metadata">

**Author:** ![hui-yang2020](https://yyz2.discourse-cdn.com/free1/user_avatar/itensor.discourse.group/hui-yang2020/32/186_2.png) [@hui-yang2020](https://itensor.discourse.group/u/hui-yang2020)\
**Post date:** [January 6, 2023, 7:52pm UTC](https://itensor.discourse.group/t/transfer-the-idmrg-wave-function-into-the-initial-wave-function/574/2 "2023-01-06T19:52:56Z")

</div>

I have solved it.
