Closed calculatechen closed 5 months ago
MemoryError: Unable to allocate 64.0 GiB for an array with shape (92665, 92665) and data type float64
The final error of your message above clearly states that you simply do not have sufficient memory to execute this code on the hardware that you are using. This is unrelated to the code contained in Qiskit Nature.
Environment
What is happening?
This is the web link of Challenge 2 :https://github.com/qiskit-community/ibm-quantum-challenge-fall-2021/blob/main/solutions-by-authors/challenge-2/challenge-2.ipynb
This is the web link of Migration Guides I referenced:https://qiskit.org/ecosystem/nature/migration/0.5_c_electronic_structure.html
I try to migrate from 0.2.0 to 0.7.1, get an error: Can't synchronously write data (file write failed: time = Wed Jan 24 11:27:50 2024 , filename = '/tmp/tmp9f5remmb', file descriptor = 76, errno = 28, error message = 'No space left on device', buf = 0x2ac60e8420a0, total write size = 7065072, bytes this sub-write = 7065072, bytes actually written = 18446744073709551615, offset = 0)
There is a temporary file with a size of about 40g, which is full of space/dev/mapper/CentOS-ROOT
I tried to modify the default path of the TMP folder
Unfortunately, I got another error: Unable to allocate 64.0 GiB for an array with shape (92665, 92665) and data type float64
How can we reproduce the issue?
The following is my code:
What should happen?
When running code, get an error: Can't synchronously write data (file write failed: time = Wed Jan 24 11:27:50 2024 , filename = '/tmp/tmp9f5remmb', file descriptor = 76, errno = 28, error message = 'No space left on device', buf = 0x2ac60e8420a0, total write size = 7065072, bytes this sub-write = 7065072, bytes actually written = 18446744073709551615, offset = 0)
After modifying the TMP path, get another error:
Any suggestions?
No response