qrisp.qaoa.QAOABenchmark.load#
- classmethod QAOABenchmark.load(filename)[source]#
Loads benchmark data from the harddrive that has been saved by
.save
.- Parameters:
- filenamestring
The filename to load from.
- Returns:
- objQAOABenchmark
The loaded data.
Examples
We assume that the code from the example in
.save
has been executed and load the corresponding data:from qrisp.qaoa import QAOABenchmark benchmark_data = QAOABenchmark.load("example.qaoa")