We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ca7153 commit d171498Copy full SHA for d171498
lindbladmpo/LindbladMPOSolver.py
@@ -55,7 +55,7 @@ def __init__(
55
self.s_id_suffix = ""
56
self.result = {}
57
58
- def solve(self):
+ def solve(self, b_load_output=True):
59
"""Solves the simulation and loads the result dictionaries."""
60
if self.s_input_file == "":
61
self.build()
@@ -64,7 +64,10 @@ def solve(self):
64
)
65
if exit_code != 0:
66
raise Exception("There was an error executing the solver.")
67
- self.result = LindbladMPOSolver.load_output(self.s_output_path)
+ if b_load_output:
68
+ self.result = LindbladMPOSolver.load_output(self.s_output_path)
69
+ else:
70
+ self.result = {}
71
72
@staticmethod
73
def process_default_paths(
0 commit comments