Skip to content

Commit

Permalink
refactor metrics, wip #8
Browse files Browse the repository at this point in the history
  • Loading branch information
evmckinney9 committed Jun 30, 2023
1 parent 4e89c0f commit 58dd518
Show file tree
Hide file tree
Showing 15 changed files with 578 additions and 577 deletions.
18 changes: 9 additions & 9 deletions src/tests/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
TrivialLayout,
)

from transpile_benchy.runner import CustomPassManager
from transpile_benchy.passmanagers.abc_runner import CustomPassManager

# from transpile_benchy.metrics import DepthMetric
# depth_metric = DepthMetric(basis_gate=CXGate())
Expand All @@ -21,17 +21,17 @@
class Trivial_Basic(CustomPassManager):
"""Custom pass manager."""

def build_pre_process(self):
def build_pre_stage(self):
"""Build the pre-process PassManager."""
return super().build_pre_process()
return super().build_pre_stage()

def build_post_process(self):
def build_post_stage(self):
"""Build the post-process PassManager."""
pm = PassManager()
# pm.append(depth_metric.get_pass())
return pm

def build_main_process(self):
def build_main_stage(self):
"""Process the circuit."""
pm = PassManager()
pm.append(
Expand All @@ -49,17 +49,17 @@ def build_main_process(self):
class SABRE(CustomPassManager):
"""Custom pass manager."""

def build_pre_process(self):
def build_pre_stage(self):
"""Build the pre-process PassManager."""
return super().build_pre_process()
return super().build_pre_stage()

def build_post_process(self):
def build_post_stage(self):
"""Build the post-process PassManager."""
pm = PassManager()
# pm.append(depth_metric.get_pass())
return pm

def build_main_process(self):
def build_main_stage(self):
"""Process the circuit."""
pm = PassManager()
pm.append(
Expand Down
Loading

0 comments on commit 58dd518

Please sign in to comment.