From f35f41951c764d021c1eb25c425823729513d74d Mon Sep 17 00:00:00 2001 From: Tianyi Hao Date: Sun, 14 Apr 2024 19:38:02 -0500 Subject: [PATCH] fix typo: RestoreModelConnectivityPass --- bqskit/compiler/compile.py | 6 +++--- bqskit/passes/__init__.py | 6 +++--- bqskit/passes/mapping/__init__.py | 4 ++-- bqskit/passes/mapping/setmodel.py | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/bqskit/compiler/compile.py b/bqskit/compiler/compile.py index 87db9db93..4824c42ad 100644 --- a/bqskit/compiler/compile.py +++ b/bqskit/compiler/compile.py @@ -52,7 +52,7 @@ from bqskit.passes.mapping.routing.pam import PAMRoutingPass from bqskit.passes.mapping.routing.sabre import GeneralizedSabreRoutingPass from bqskit.passes.mapping.setmodel import ExtractModelConnectivityPass -from bqskit.passes.mapping.setmodel import RestoreModelConnevtivityPass +from bqskit.passes.mapping.setmodel import RestoreModelConnectivityPass from bqskit.passes.mapping.setmodel import SetModelPass from bqskit.passes.mapping.topology import SubtopologySelectionPass from bqskit.passes.mapping.verify import PAMVerificationSequence @@ -1012,7 +1012,7 @@ def build_multi_qudit_retarget_workflow( optimization_level, synthesis_epsilon, ), - RestoreModelConnevtivityPass(), + RestoreModelConnectivityPass(), ], AutoRebase2QuditGatePass(3, 5, synthesis_epsilon), ), @@ -1257,7 +1257,7 @@ def build_seqpam_mapping_optimization_workflow( PAMRoutingPass(), post_pam_seq, UnfoldPass(), - RestoreModelConnevtivityPass(), + RestoreModelConnectivityPass(), LogPass('Recaching permutation-aware synthesis results.'), SubtopologySelectionPass(block_size), diff --git a/bqskit/passes/__init__.py b/bqskit/passes/__init__.py index eb8e41607..eb9dc7049 100644 --- a/bqskit/passes/__init__.py +++ b/bqskit/passes/__init__.py @@ -129,7 +129,7 @@ PAMRoutingPass EmbedAllPermutationsPass ExtractModelConnectivityPass - RestoreModelConnevtivityPass + RestoreModelConnectivityPass .. rubric:: PAM Verification Passes @@ -238,7 +238,7 @@ from bqskit.passes.mapping.routing.pam import PAMRoutingPass from bqskit.passes.mapping.routing.sabre import GeneralizedSabreRoutingPass from bqskit.passes.mapping.setmodel import ExtractModelConnectivityPass -from bqskit.passes.mapping.setmodel import RestoreModelConnevtivityPass +from bqskit.passes.mapping.setmodel import RestoreModelConnectivityPass from bqskit.passes.mapping.setmodel import SetModelPass from bqskit.passes.mapping.topology import SubtopologySelectionPass from bqskit.passes.mapping.verify import CalculatePAMErrorsPass @@ -398,7 +398,7 @@ 'GeneralSQDecomposition', 'StructureAnalysisPass', 'ExtractModelConnectivityPass', - 'RestoreModelConnevtivityPass', + 'RestoreModelConnectivityPass', 'TagPAMBlockDataPass', 'CalculatePAMErrorsPass', 'UnTagPAMBlockDataPass', diff --git a/bqskit/passes/mapping/__init__.py b/bqskit/passes/mapping/__init__.py index 5ffc9dd2f..0aac05df2 100644 --- a/bqskit/passes/mapping/__init__.py +++ b/bqskit/passes/mapping/__init__.py @@ -10,7 +10,7 @@ from bqskit.passes.mapping.routing.pam import PAMRoutingPass from bqskit.passes.mapping.routing.sabre import GeneralizedSabreRoutingPass from bqskit.passes.mapping.setmodel import ExtractModelConnectivityPass -from bqskit.passes.mapping.setmodel import RestoreModelConnevtivityPass +from bqskit.passes.mapping.setmodel import RestoreModelConnectivityPass from bqskit.passes.mapping.setmodel import SetModelPass from bqskit.passes.mapping.topology import SubtopologySelectionPass from bqskit.passes.mapping.verify import CalculatePAMErrorsPass @@ -30,7 +30,7 @@ 'EmbedAllPermutationsPass', 'SubtopologySelectionPass', 'ExtractModelConnectivityPass', - 'RestoreModelConnevtivityPass', + 'RestoreModelConnectivityPass', 'TagPAMBlockDataPass', 'CalculatePAMErrorsPass', 'UnTagPAMBlockDataPass', diff --git a/bqskit/passes/mapping/setmodel.py b/bqskit/passes/mapping/setmodel.py index 2e26a1e0e..a484fc41d 100644 --- a/bqskit/passes/mapping/setmodel.py +++ b/bqskit/passes/mapping/setmodel.py @@ -42,7 +42,7 @@ class ExtractModelConnectivityPass(BasePass): Extracts and saves the current target machine model's connectivity. The model will remain unchanged except that it will be fully connected until - the RestoreModelConnevtivityPass is executed. + the RestoreModelConnectivityPass is executed. """ key = '_ExtractModelConnectivityPass_connectivity' @@ -55,7 +55,7 @@ async def run(self, circuit: Circuit, data: PassData) -> None: ) -class RestoreModelConnevtivityPass(BasePass): +class RestoreModelConnectivityPass(BasePass): """Restores the connectivity of the target machine model.""" async def run(self, circuit: Circuit, data: PassData) -> None: