9
9
10
10
11
11
@dataclass
12
- class AlgoBenchmark :
12
+ class AlgorithmicBenchmark :
13
13
domain : str
14
14
"""The problem domain. Usually a high-level ReCirq module."""
15
15
16
16
name : str
17
17
"""The benchmark name. Must be unique within the domain."""
18
18
19
19
executable_family : str
20
- """A globally unique identifier for this AlgoBenchmark .
20
+ """A globally unique identifier for this AlgorithmicBenchmark .
21
21
22
22
This should match up with this Benchmark's `spec_class.executable_family`.
23
23
24
24
By convention, the executable family is the fully-qualified leaf-module where the code
25
- for this AlgoBenchmark lives.
25
+ for this AlgorithmicBenchmark lives.
26
26
"""
27
27
28
28
spec_class : Type [ExecutableSpec ]
29
- """The ExecutableSpec subclass for this AlgoBenchmark ."""
29
+ """The ExecutableSpec subclass for this AlgorithmicBenchmark ."""
30
30
31
31
data_class : Type
32
- """The class which can contain ETL-ed data for this AlgoBenchmark ."""
32
+ """The class which can contain ETL-ed data for this AlgorithmicBenchmark ."""
33
33
34
34
gen_func : Callable [[...], QuantumExecutableGroup ]
35
35
"""The function that returns a QuantumExecutableGroup for a given Config."""
@@ -47,7 +47,7 @@ def as_strings(self):
47
47
@dataclass
48
48
class BenchmarkConfig :
49
49
short_name : str
50
- """The short name for this config. Unique within an AlgoBenchmark ."""
50
+ """The short name for this config. Unique within an AlgorithmicBenchmark ."""
51
51
52
52
full_name : str
53
53
"""A globally unique name for this config."""
@@ -64,7 +64,7 @@ class BenchmarkConfig:
64
64
65
65
66
66
@lru_cache ()
67
- def get_all_algo_configs () -> List [Tuple [AlgoBenchmark , BenchmarkConfig ]]:
67
+ def get_all_algo_configs () -> List [Tuple [AlgorithmicBenchmark , BenchmarkConfig ]]:
68
68
ret = []
69
69
for algo in BENCHMARKS :
70
70
for config in algo .configs :
0 commit comments