File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ class AlgorithmicBenchmark:
23
23
for this AlgorithmicBenchmark lives.
24
24
spec_class: The ExecutableSpec subclass for this AlgorithmicBenchmark.
25
25
data_class: The class which can contain ETL-ed data for this AlgorithmicBenchmark.
26
- gen_func: The function that returns a QuantumExecutableGroup for a given Config.
26
+ executable_generator_func: The function that returns a QuantumExecutableGroup for a
27
+ given Config.
27
28
configs: A list of available `BenchmarkConfig` for this benchmark.
28
29
"""
29
30
@@ -32,15 +33,15 @@ class AlgorithmicBenchmark:
32
33
executable_family : str
33
34
spec_class : Type [ExecutableSpec ]
34
35
data_class : Type
35
- gen_func : Callable [[...], QuantumExecutableGroup ]
36
+ executable_generator_func : Callable [[...], QuantumExecutableGroup ]
36
37
configs : List ['BenchmarkConfig' ]
37
38
38
39
def as_strings (self ):
39
40
"""Get values of this class as strings suitable for printing."""
40
41
ret = {k : str (v ) for k , v in dataclasses .asdict (self ).items ()}
41
42
ret ['spec_class' ] = self .spec_class .__name__
42
43
ret ['data_class' ] = self .data_class .__name__
43
- ret ['gen_func ' ] = self .gen_func .__name__
44
+ ret ['executable_generator_func ' ] = self .executable_generator_func .__name__
44
45
return ret
45
46
46
47
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def test_classes_and_funcs(algo):
43
43
mod = import_module (algo .executable_family )
44
44
assert algo .spec_class == getattr (mod , algo .spec_class .__name__ )
45
45
assert algo .data_class == getattr (mod , algo .data_class .__name__ )
46
- assert algo .gen_func == getattr (mod , algo .gen_func .__name__ )
46
+ assert algo .executable_generator_func == getattr (mod , algo .executable_generator_func .__name__ )
47
47
48
48
49
49
def test_globally_unique_executable_family ():
You can’t perform that action at this time.
0 commit comments