You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I set n_modes to 6, it results into error and tell me that it can not allocate memory.
Steps to reproduce the problem
The problem occurs when I set n_modes to 6. I put all of my codes at the end.
What is the expected behavior?
I expect the code to work because I have a lot of memory. The code also worked with no problem when I set n_modes is 4.
Suggested solutions
Well I tried working with parameters like max_passes or change the max allowed memory use of juypter notebook in the configuration, but it didn't work.
My full message:
Hi everyone, I hope you are doing well.
I am trying to simulates two qubits for resonator coupling and get different parameters as answer. I created an instance of the EPRanalysis class, and did some configurations like n_modes = 6, max_passes = 12, etc. You can find all of codes at the end of my post.
I ran the code with n_modes = 4, and there was no problem. The problem is that when I set n_modes to 6, I get the following error while running eig_qb.run_epr():
MemoryError Traceback (most recent call last)
MemoryError: Could not allocate memory.
I was monitoring the process of the code being executed. The run of eig_qb.sim.run(name="twoqubit", components=[], open_terminations=[]) took 16 min to be executed, and there was no error.
The code eig_qb.run_epr() took about 20 min to be executed and resulted in kernel to die. Jupyter note book told me:
The kernel for my_file.ipynb appears to have died. It will restart automatically.
MemoryError: Traceback (most recent call last)
MemoryError: Could not allocate memory
When eig_qb.run_epr() was running, for the first 5 min, it used something about 1 or 2 GB of my RAM, and then started using more RAM step by step. (100MB in each step.) It continued to increase using RAM until 31GB, then RAM usage suddenly increased to 71GB, stayed in 71GB for some seconds, and decreased to 8GB. It was using 8GB of RAM for 5 min and then jupyter notebook told me that my_file.ipynb appears to have died, and I got the mentioned error that says can not allocate memory. I put the full log at the end of my post.
The error says it can not allocate enough memory, I have 128GB of memory though. I want to know if 128GB of RAM is not enough for this task, or there is another problem or issue that I must solve to be able to run the code properly. If there is a problem in my code that can be solved or a configuration that can be applied to solve the issue, I would be thankful if you can help.
I’d really appreciate any help or advice you can offer—thanks so much in advance! Let me know if you need more details, and I’ll be happy to clarify.
Best regards.
Here are my codes. I put lines between each block of code in jupyter notebook. There were also come configurations about the layout that I didn't think they are important here, so I didn't include them. If they are needed, let me know please so I include them too.
Information
What is the current behavior?
When I set
n_modes
to 6, it results into error and tell me that it can not allocate memory.Steps to reproduce the problem
The problem occurs when I set
n_modes
to 6. I put all of my codes at the end.What is the expected behavior?
I expect the code to work because I have a lot of memory. The code also worked with no problem when I set
n_modes
is 4.Suggested solutions
Well I tried working with parameters like max_passes or change the max allowed memory use of juypter notebook in the configuration, but it didn't work.
My full message:
Hi everyone, I hope you are doing well.
I am trying to simulates two qubits for resonator coupling and get different parameters as answer. I created an instance of the EPRanalysis class, and did some configurations like
n_modes = 6
,max_passes = 12
, etc. You can find all of codes at the end of my post.I ran the code with
n_modes = 4
, and there was no problem. The problem is that when I setn_modes
to 6, I get the following error while runningeig_qb.run_epr()
:I was monitoring the process of the code being executed. The run of
eig_qb.sim.run(name="twoqubit", components=[], open_terminations=[])
took 16 min to be executed, and there was no error.The code
eig_qb.run_epr()
took about 20 min to be executed and resulted in kernel to die. Jupyter note book told me:When
eig_qb.run_epr()
was running, for the first 5 min, it used something about 1 or 2 GB of my RAM, and then started using more RAM step by step. (100MB in each step.) It continued to increase using RAM until 31GB, then RAM usage suddenly increased to 71GB, stayed in 71GB for some seconds, and decreased to 8GB. It was using 8GB of RAM for 5 min and then jupyter notebook told me that my_file.ipynb appears to have died, and I got the mentioned error that says can not allocate memory. I put the full log at the end of my post.The error says it can not allocate enough memory, I have 128GB of memory though. I want to know if 128GB of RAM is not enough for this task, or there is another problem or issue that I must solve to be able to run the code properly. If there is a problem in my code that can be solved or a configuration that can be applied to solve the issue, I would be thankful if you can help.
I’d really appreciate any help or advice you can offer—thanks so much in advance! Let me know if you need more details, and I’ll be happy to clarify.
Best regards.
Here are my codes. I put lines between each block of code in jupyter notebook. There were also come configurations about the layout that I didn't think they are important here, so I didn't include them. If they are needed, let me know please so I include them too.
Here is the full log of
eig_qb.run_epr()
:The text was updated successfully, but these errors were encountered: