{"payload":{"allShortcutsEnabled":false,"fileTree":{"qiskit/transpiler":{"items":[{"name":"passes","path":"qiskit/transpiler/passes","contentType":"directory"},{"name":"preset_passmanagers","path":"qiskit/transpiler/preset_passmanagers","contentType":"directory"},{"name":"__init__.py","path":"qiskit/transpiler/__init__.py","contentType":"file"},{"name":"basepasses.py","path":"qiskit/transpiler/basepasses.py","contentType":"file"},{"name":"coupling.py","path":"qiskit/transpiler/coupling.py","contentType":"file"},{"name":"exceptions.py","path":"qiskit/transpiler/exceptions.py","contentType":"file"},{"name":"instruction_durations.py","path":"qiskit/transpiler/instruction_durations.py","contentType":"file"},{"name":"layout.py","path":"qiskit/transpiler/layout.py","contentType":"file"},{"name":"passmanager.py","path":"qiskit/transpiler/passmanager.py","contentType":"file"},{"name":"passmanager_config.py","path":"qiskit/transpiler/passmanager_config.py","contentType":"file"},{"name":"target.py","path":"qiskit/transpiler/target.py","contentType":"file"},{"name":"timing_constraints.py","path":"qiskit/transpiler/timing_constraints.py","contentType":"file"}],"totalCount":12},"qiskit":{"items":[{"name":"assembler","path":"qiskit/assembler","contentType":"directory"},{"name":"circuit","path":"qiskit/circuit","contentType":"directory"},{"name":"compiler","path":"qiskit/compiler","contentType":"directory"},{"name":"converters","path":"qiskit/converters","contentType":"directory"},{"name":"dagcircuit","path":"qiskit/dagcircuit","contentType":"directory"},{"name":"passmanager","path":"qiskit/passmanager","contentType":"directory"},{"name":"primitives","path":"qiskit/primitives","contentType":"directory"},{"name":"providers","path":"qiskit/providers","contentType":"directory"},{"name":"pulse","path":"qiskit/pulse","contentType":"directory"},{"name":"qasm","path":"qiskit/qasm","contentType":"directory"},{"name":"qasm2","path":"qiskit/qasm2","contentType":"directory"},{"name":"qasm3","path":"qiskit/qasm3","contentType":"directory"},{"name":"qobj","path":"qiskit/qobj","contentType":"directory"},{"name":"qpy","path":"qiskit/qpy","contentType":"directory"},{"name":"quantum_info","path":"qiskit/quantum_info","contentType":"directory"},{"name":"result","path":"qiskit/result","contentType":"directory"},{"name":"scheduler","path":"qiskit/scheduler","contentType":"directory"},{"name":"synthesis","path":"qiskit/synthesis","contentType":"directory"},{"name":"transpiler","path":"qiskit/transpiler","contentType":"directory"},{"name":"utils","path":"qiskit/utils","contentType":"directory"},{"name":"visualization","path":"qiskit/visualization","contentType":"directory"},{"name":"VERSION.txt","path":"qiskit/VERSION.txt","contentType":"file"},{"name":"__init__.py","path":"qiskit/__init__.py","contentType":"file"},{"name":"exceptions.py","path":"qiskit/exceptions.py","contentType":"file"},{"name":"user_config.py","path":"qiskit/user_config.py","contentType":"file"},{"name":"version.py","path":"qiskit/version.py","contentType":"file"}],"totalCount":26},"":{"items":[{"name":".azure","path":".azure","contentType":"directory"},{"name":".binder","path":".binder","contentType":"directory"},{"name":".cargo","path":".cargo","contentType":"directory"},{"name":".github","path":".github","contentType":"directory"},{"name":"crates","path":"crates","contentType":"directory"},{"name":"docs","path":"docs","contentType":"directory"},{"name":"examples","path":"examples","contentType":"directory"},{"name":"qiskit","path":"qiskit","contentType":"directory"},{"name":"releasenotes","path":"releasenotes","contentType":"directory"},{"name":"test","path":"test","contentType":"directory"},{"name":"tools","path":"tools","contentType":"directory"},{"name":".editorconfig","path":".editorconfig","contentType":"file"},{"name":".git-blame-ignore-revs","path":".git-blame-ignore-revs","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".local-spellings","path":".local-spellings","contentType":"file"},{"name":".mailmap","path":".mailmap","contentType":"file"},{"name":".mergify.yml","path":".mergify.yml","contentType":"file"},{"name":".stestr.conf","path":".stestr.conf","contentType":"file"},{"name":"CITATION.bib","path":"CITATION.bib","contentType":"file"},{"name":"CODE_OF_CONDUCT.md","path":"CODE_OF_CONDUCT.md","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"Cargo.lock","path":"Cargo.lock","contentType":"file"},{"name":"Cargo.toml","path":"Cargo.toml","contentType":"file"},{"name":"DEPRECATION.md","path":"DEPRECATION.md","contentType":"file"},{"name":"LICENSE.txt","path":"LICENSE.txt","contentType":"file"},{"name":"MAINTAINING.md","path":"MAINTAINING.md","contentType":"file"},{"name":"MANIFEST.in","path":"MANIFEST.in","contentType":"file"},{"name":"Makefile","path":"Makefile","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"SECURITY.md","path":"SECURITY.md","contentType":"file"},{"name":"asv.conf.json","path":"asv.conf.json","contentType":"file"},{"name":"azure-pipelines.yml","path":"azure-pipelines.yml","contentType":"file"},{"name":"constraints.txt","path":"constraints.txt","contentType":"file"},{"name":"pyproject.toml","path":"pyproject.toml","contentType":"file"},{"name":"qiskit_bot.yaml","path":"qiskit_bot.yaml","contentType":"file"},{"name":"requirements-dev.txt","path":"requirements-dev.txt","contentType":"file"},{"name":"requirements-optional.txt","path":"requirements-optional.txt","contentType":"file"},{"name":"requirements.txt","path":"requirements.txt","contentType":"file"},{"name":"rust-toolchain.toml","path":"rust-toolchain.toml","contentType":"file"},{"name":"setup.py","path":"setup.py","contentType":"file"},{"name":"tox.ini","path":"tox.ini","contentType":"file"}],"totalCount":41}},"fileTreeProcessingTime":17.837504,"foldersToFetch":[],"repo":{"id":83821669,"defaultBranch":"main","name":"qiskit","ownerLogin":"Qiskit","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2017-03-03T17:02:42.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/30696987?v=4","public":true,"private":false,"isOrgOwned":true},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"main","listCacheKey":"v0:1710785011.0","canEdit":false,"refType":"branch","currentOid":"43381ae1b159c01b55159d2dc1e8a65970b72746"},"path":"qiskit/transpiler/basepasses.py","currentUser":null,"blob":{"rawLines":["# This code is part of Qiskit.","#","# (C) Copyright IBM 2017, 2018.","#","# This code is licensed under the Apache License, Version 2.0. You may","# obtain a copy of this license in the LICENSE.txt file in the root directory","# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.","#","# Any modifications or derivative works of this code must retain this","# copyright notice, and modified files need to carry a notice indicating","# that they have been altered from the originals.","","\"\"\"Base transpiler passes.\"\"\"","from __future__ import annotations","","import abc","from abc import abstractmethod","from collections.abc import Callable, Hashable, Iterable","from inspect import signature","","from qiskit.circuit import QuantumCircuit","from qiskit.converters import circuit_to_dag, dag_to_circuit","from qiskit.dagcircuit import DAGCircuit","from qiskit.passmanager.base_tasks import GenericPass, PassManagerIR","from qiskit.passmanager.compilation_status import PropertySet, RunState, PassManagerState","","from .exceptions import TranspilerError","from .layout import TranspileLayout","","","class MetaPass(abc.ABCMeta):"," \"\"\"Metaclass for transpiler passes.",""," Enforces the creation of some fields in the pass while allowing passes to"," override ``__init__``."," \"\"\"",""," # Drop this functionality in the future."," # This metaclass provides a pass equivalence evaluation based on the constructor arguments."," # This implicit fake-hash based equivalence is fragile, and the pass developer must"," # explicitly implement equivalence check logic for each pass if necessary."," # Currently, this metaclass is just here for backward compatibility, because"," # circuit pass manager has a functionality to avoid multiple execution of the"," # same pass (even though they are scheduled so). This is managed by the valid_passes set,"," # and executed passes are added to this collection to avoid future execution."," # Dropping this metaclass causes many unittest failures and thus this is"," # considered as a breaking API change."," # For example, test.python.transpiler.test_pass_scheduler.TestLogPasses.test_passes_in_linear",""," def __call__(cls, *args, **kwargs):"," pass_instance = type.__call__(cls, *args, **kwargs)"," pass_instance._hash = hash(MetaPass._freeze_init_parameters(cls, args, kwargs))"," return pass_instance",""," @staticmethod"," def _freeze_init_parameters(class_, args, kwargs):"," self_guard = object()"," init_signature = signature(class_.__init__)"," bound_signature = init_signature.bind(self_guard, *args, **kwargs)"," arguments = [(\"class_.__name__\", class_.__name__)]"," for name, value in bound_signature.arguments.items():"," if value == self_guard:"," continue"," if isinstance(value, Hashable):"," arguments.append((name, type(value), value))"," else:"," arguments.append((name, type(value), repr(value)))"," return frozenset(arguments)","","","class BasePass(GenericPass, metaclass=MetaPass):"," \"\"\"Base class for transpiler passes.\"\"\"",""," def __init__(self):"," super().__init__()"," self.preserves: Iterable[GenericPass] = []"," self._hash = hash(None)",""," def __hash__(self):"," return self._hash",""," def __eq__(self, other):"," # Note that this implementation is incorrect."," # This must be reimplemented in the future release."," # See the discussion below for details."," # https://github.com/Qiskit/qiskit/pull/10127#discussion_r1329982732"," return hash(self) == hash(other)",""," @abstractmethod"," def run(self, dag: DAGCircuit): # pylint: disable=arguments-differ"," \"\"\"Run a pass on the DAGCircuit. This is implemented by the pass developer.",""," Args:"," dag: the dag on which the pass is run.",""," Raises:"," NotImplementedError: when this is left unimplemented for a pass."," \"\"\""," raise NotImplementedError",""," @property"," def is_transformation_pass(self):"," \"\"\"Check if the pass is a transformation pass.",""," If the pass is a TransformationPass, that means that the pass can manipulate the DAG,"," but cannot modify the property set (but it can be read)."," \"\"\""," return isinstance(self, TransformationPass)",""," @property"," def is_analysis_pass(self):"," \"\"\"Check if the pass is an analysis pass.",""," If the pass is an AnalysisPass, that means that the pass can analyze the DAG and write"," the results of that analysis in the property set. Modifications on the DAG are not allowed"," by this kind of pass."," \"\"\""," return isinstance(self, AnalysisPass)",""," def __call__("," self,"," circuit: QuantumCircuit,"," property_set: PropertySet | dict | None = None,"," ) -> QuantumCircuit:"," \"\"\"Runs the pass on circuit.",""," Args:"," circuit: The dag on which the pass is run."," property_set: Input/output property set. An analysis pass"," might change the property set in-place.",""," Returns:"," If on transformation pass, the resulting QuantumCircuit."," If analysis pass, the input circuit."," \"\"\""," property_set_ = None"," if isinstance(property_set, dict): # this includes (dict, PropertySet)"," property_set_ = PropertySet(property_set)",""," if isinstance(property_set_, PropertySet):"," # pylint: disable=attribute-defined-outside-init"," self.property_set = property_set_",""," result = self.run(circuit_to_dag(circuit))",""," result_circuit = circuit",""," if isinstance(property_set, dict): # this includes (dict, PropertySet)"," property_set.clear()"," property_set.update(self.property_set)",""," if isinstance(result, DAGCircuit):"," result_circuit = dag_to_circuit(result, copy_operations=False)"," elif result is None:"," result_circuit = circuit.copy()",""," if self.property_set[\"layout\"]:"," result_circuit._layout = TranspileLayout("," initial_layout=self.property_set[\"layout\"],"," input_qubit_mapping=self.property_set[\"original_qubit_indices\"],"," final_layout=self.property_set[\"final_layout\"],"," _input_qubit_count=len(circuit.qubits),"," _output_qubit_list=result_circuit.qubits,"," )"," if self.property_set[\"clbit_write_latency\"] is not None:"," result_circuit._clbit_write_latency = self.property_set[\"clbit_write_latency\"]"," if self.property_set[\"conditional_latency\"] is not None:"," result_circuit._conditional_latency = self.property_set[\"conditional_latency\"]"," if self.property_set[\"node_start_time\"]:"," # This is dictionary keyed on the DAGOpNode, which is invalidated once"," # dag is converted into circuit. So this schedule information is"," # also converted into list with the same ordering with circuit.data."," topological_start_times = []"," start_times = self.property_set[\"node_start_time\"]"," for dag_node in result.topological_op_nodes():"," topological_start_times.append(start_times[dag_node])"," result_circuit._op_start_times = topological_start_times",""," return result_circuit","","","class AnalysisPass(BasePass): # pylint: disable=abstract-method"," \"\"\"An analysis pass: change property set, not DAG.\"\"\"","","","class TransformationPass(BasePass): # pylint: disable=abstract-method"," \"\"\"A transformation pass: change DAG, not property set.\"\"\"",""," def execute("," self,"," passmanager_ir: PassManagerIR,"," state: PassManagerState,"," callback: Callable = None,"," ) -> tuple[PassManagerIR, PassManagerState]:"," new_dag, state = super().execute("," passmanager_ir=passmanager_ir,"," state=state,"," callback=callback,"," )",""," if state.workflow_status.previous_run == RunState.SUCCESS:"," if isinstance(new_dag, DAGCircuit):"," # Copy calibration data from the original program"," new_dag.calibrations = passmanager_ir.calibrations"," else:"," raise TranspilerError("," \"Transformation passes should return a transformed dag.\""," f\"The pass {self.__class__.__name__} is returning a {type(new_dag)}\""," )",""," return new_dag, state",""," def update_status("," self,"," state: PassManagerState,"," run_state: RunState,"," ) -> PassManagerState:"," state = super().update_status(state, run_state)"," if run_state == RunState.SUCCESS:"," state.workflow_status.completed_passes.intersection_update(set(self.preserves))"," return state"],"stylingDirectives":[[{"start":0,"end":30,"cssClass":"pl-c"}],[{"start":0,"end":1,"cssClass":"pl-c"}],[{"start":0,"end":31,"cssClass":"pl-c"}],[{"start":0,"end":1,"cssClass":"pl-c"}],[{"start":0,"end":70,"cssClass":"pl-c"}],[{"start":0,"end":77,"cssClass":"pl-c"}],[{"start":0,"end":71,"cssClass":"pl-c"}],[{"start":0,"end":1,"cssClass":"pl-c"}],[{"start":0,"end":69,"cssClass":"pl-c"}],[{"start":0,"end":72,"cssClass":"pl-c"}],[{"start":0,"end":49,"cssClass":"pl-c"}],[],[{"start":0,"end":29,"cssClass":"pl-s"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":16,"end":22,"cssClass":"pl-k"},{"start":23,"end":34,"cssClass":"pl-s1"}],[],[{"start":0,"end":6,"cssClass":"pl-k"},{"start":7,"end":10,"cssClass":"pl-s1"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":8,"cssClass":"pl-s1"},{"start":9,"end":15,"cssClass":"pl-k"},{"start":16,"end":30,"cssClass":"pl-s1"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":16,"cssClass":"pl-s1"},{"start":17,"end":20,"cssClass":"pl-s1"},{"start":21,"end":27,"cssClass":"pl-k"},{"start":28,"end":36,"cssClass":"pl-v"},{"start":38,"end":46,"cssClass":"pl-v"},{"start":48,"end":56,"cssClass":"pl-v"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":12,"cssClass":"pl-s1"},{"start":13,"end":19,"cssClass":"pl-k"},{"start":20,"end":29,"cssClass":"pl-s1"}],[],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-s1"},{"start":12,"end":19,"cssClass":"pl-s1"},{"start":20,"end":26,"cssClass":"pl-k"},{"start":27,"end":41,"cssClass":"pl-v"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-s1"},{"start":12,"end":22,"cssClass":"pl-s1"},{"start":23,"end":29,"cssClass":"pl-k"},{"start":30,"end":44,"cssClass":"pl-s1"},{"start":46,"end":60,"cssClass":"pl-s1"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-s1"},{"start":12,"end":22,"cssClass":"pl-s1"},{"start":23,"end":29,"cssClass":"pl-k"},{"start":30,"end":40,"cssClass":"pl-v"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-s1"},{"start":12,"end":23,"cssClass":"pl-s1"},{"start":24,"end":34,"cssClass":"pl-s1"},{"start":35,"end":41,"cssClass":"pl-k"},{"start":42,"end":53,"cssClass":"pl-v"},{"start":55,"end":68,"cssClass":"pl-v"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-s1"},{"start":12,"end":23,"cssClass":"pl-s1"},{"start":24,"end":42,"cssClass":"pl-s1"},{"start":43,"end":49,"cssClass":"pl-k"},{"start":50,"end":61,"cssClass":"pl-v"},{"start":63,"end":71,"cssClass":"pl-v"},{"start":73,"end":89,"cssClass":"pl-v"}],[],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":6,"end":16,"cssClass":"pl-s1"},{"start":17,"end":23,"cssClass":"pl-k"},{"start":24,"end":39,"cssClass":"pl-v"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":6,"end":12,"cssClass":"pl-s1"},{"start":13,"end":19,"cssClass":"pl-k"},{"start":20,"end":35,"cssClass":"pl-v"}],[],[],[{"start":0,"end":5,"cssClass":"pl-k"},{"start":6,"end":14,"cssClass":"pl-v"},{"start":15,"end":18,"cssClass":"pl-s1"},{"start":19,"end":26,"cssClass":"pl-v"}],[{"start":4,"end":39,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":77,"cssClass":"pl-s"}],[{"start":0,"end":26,"cssClass":"pl-s"}],[{"start":0,"end":7,"cssClass":"pl-s"}],[],[{"start":4,"end":44,"cssClass":"pl-c"}],[{"start":4,"end":95,"cssClass":"pl-c"}],[{"start":4,"end":87,"cssClass":"pl-c"}],[{"start":4,"end":78,"cssClass":"pl-c"}],[{"start":4,"end":80,"cssClass":"pl-c"}],[{"start":4,"end":81,"cssClass":"pl-c"}],[{"start":4,"end":93,"cssClass":"pl-c"}],[{"start":4,"end":81,"cssClass":"pl-c"}],[{"start":4,"end":76,"cssClass":"pl-c"}],[{"start":4,"end":42,"cssClass":"pl-c"}],[{"start":4,"end":97,"cssClass":"pl-c"}],[],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":16,"cssClass":"pl-en"},{"start":17,"end":20,"cssClass":"pl-s1"},{"start":22,"end":23,"cssClass":"pl-c1"},{"start":23,"end":27,"cssClass":"pl-s1"},{"start":29,"end":31,"cssClass":"pl-c1"},{"start":31,"end":37,"cssClass":"pl-s1"}],[{"start":8,"end":21,"cssClass":"pl-s1"},{"start":22,"end":23,"cssClass":"pl-c1"},{"start":24,"end":28,"cssClass":"pl-s1"},{"start":29,"end":37,"cssClass":"pl-en"},{"start":38,"end":41,"cssClass":"pl-s1"},{"start":43,"end":44,"cssClass":"pl-c1"},{"start":44,"end":48,"cssClass":"pl-s1"},{"start":50,"end":52,"cssClass":"pl-c1"},{"start":52,"end":58,"cssClass":"pl-s1"}],[{"start":8,"end":21,"cssClass":"pl-s1"},{"start":22,"end":27,"cssClass":"pl-s1"},{"start":28,"end":29,"cssClass":"pl-c1"},{"start":30,"end":34,"cssClass":"pl-en"},{"start":35,"end":43,"cssClass":"pl-v"},{"start":44,"end":67,"cssClass":"pl-en"},{"start":68,"end":71,"cssClass":"pl-s1"},{"start":73,"end":77,"cssClass":"pl-s1"},{"start":79,"end":85,"cssClass":"pl-s1"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":28,"cssClass":"pl-s1"}],[],[{"start":4,"end":17,"cssClass":"pl-en"},{"start":5,"end":17,"cssClass":"pl-s1"}],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":31,"cssClass":"pl-en"},{"start":32,"end":38,"cssClass":"pl-s1"},{"start":40,"end":44,"cssClass":"pl-s1"},{"start":46,"end":52,"cssClass":"pl-s1"}],[{"start":8,"end":18,"cssClass":"pl-s1"},{"start":19,"end":20,"cssClass":"pl-c1"},{"start":21,"end":27,"cssClass":"pl-en"}],[{"start":8,"end":22,"cssClass":"pl-s1"},{"start":23,"end":24,"cssClass":"pl-c1"},{"start":25,"end":34,"cssClass":"pl-en"},{"start":35,"end":41,"cssClass":"pl-s1"},{"start":42,"end":50,"cssClass":"pl-s1"}],[{"start":8,"end":23,"cssClass":"pl-s1"},{"start":24,"end":25,"cssClass":"pl-c1"},{"start":26,"end":40,"cssClass":"pl-s1"},{"start":41,"end":45,"cssClass":"pl-en"},{"start":46,"end":56,"cssClass":"pl-s1"},{"start":58,"end":59,"cssClass":"pl-c1"},{"start":59,"end":63,"cssClass":"pl-s1"},{"start":65,"end":67,"cssClass":"pl-c1"},{"start":67,"end":73,"cssClass":"pl-s1"}],[{"start":8,"end":17,"cssClass":"pl-s1"},{"start":18,"end":19,"cssClass":"pl-c1"},{"start":22,"end":39,"cssClass":"pl-s"},{"start":41,"end":47,"cssClass":"pl-s1"},{"start":48,"end":56,"cssClass":"pl-s1"}],[{"start":8,"end":11,"cssClass":"pl-k"},{"start":12,"end":16,"cssClass":"pl-s1"},{"start":18,"end":23,"cssClass":"pl-s1"},{"start":24,"end":26,"cssClass":"pl-c1"},{"start":27,"end":42,"cssClass":"pl-s1"},{"start":43,"end":52,"cssClass":"pl-s1"},{"start":53,"end":58,"cssClass":"pl-en"}],[{"start":12,"end":14,"cssClass":"pl-k"},{"start":15,"end":20,"cssClass":"pl-s1"},{"start":21,"end":23,"cssClass":"pl-c1"},{"start":24,"end":34,"cssClass":"pl-s1"}],[{"start":16,"end":24,"cssClass":"pl-k"}],[{"start":12,"end":14,"cssClass":"pl-k"},{"start":15,"end":25,"cssClass":"pl-en"},{"start":26,"end":31,"cssClass":"pl-s1"},{"start":33,"end":41,"cssClass":"pl-v"}],[{"start":16,"end":25,"cssClass":"pl-s1"},{"start":26,"end":32,"cssClass":"pl-en"},{"start":34,"end":38,"cssClass":"pl-s1"},{"start":40,"end":44,"cssClass":"pl-en"},{"start":45,"end":50,"cssClass":"pl-s1"},{"start":53,"end":58,"cssClass":"pl-s1"}],[{"start":12,"end":16,"cssClass":"pl-k"}],[{"start":16,"end":25,"cssClass":"pl-s1"},{"start":26,"end":32,"cssClass":"pl-en"},{"start":34,"end":38,"cssClass":"pl-s1"},{"start":40,"end":44,"cssClass":"pl-en"},{"start":45,"end":50,"cssClass":"pl-s1"},{"start":53,"end":57,"cssClass":"pl-en"},{"start":58,"end":63,"cssClass":"pl-s1"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":24,"cssClass":"pl-en"},{"start":25,"end":34,"cssClass":"pl-s1"}],[],[],[{"start":0,"end":5,"cssClass":"pl-k"},{"start":6,"end":14,"cssClass":"pl-v"},{"start":15,"end":26,"cssClass":"pl-v"},{"start":28,"end":37,"cssClass":"pl-s1"},{"start":37,"end":38,"cssClass":"pl-c1"},{"start":38,"end":46,"cssClass":"pl-v"}],[{"start":4,"end":43,"cssClass":"pl-s"}],[],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":16,"cssClass":"pl-en"},{"start":17,"end":21,"cssClass":"pl-s1"}],[{"start":8,"end":13,"cssClass":"pl-en"},{"start":16,"end":24,"cssClass":"pl-en"}],[{"start":8,"end":12,"cssClass":"pl-s1"},{"start":13,"end":22,"cssClass":"pl-s1"},{"start":24,"end":32,"cssClass":"pl-v"},{"start":33,"end":44,"cssClass":"pl-v"},{"start":46,"end":47,"cssClass":"pl-c1"}],[{"start":8,"end":12,"cssClass":"pl-s1"},{"start":13,"end":18,"cssClass":"pl-s1"},{"start":19,"end":20,"cssClass":"pl-c1"},{"start":21,"end":25,"cssClass":"pl-en"},{"start":26,"end":30,"cssClass":"pl-c1"}],[],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":16,"cssClass":"pl-en"},{"start":17,"end":21,"cssClass":"pl-s1"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":19,"cssClass":"pl-s1"},{"start":20,"end":25,"cssClass":"pl-s1"}],[],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":14,"cssClass":"pl-en"},{"start":15,"end":19,"cssClass":"pl-s1"},{"start":21,"end":26,"cssClass":"pl-s1"}],[{"start":8,"end":53,"cssClass":"pl-c"}],[{"start":8,"end":59,"cssClass":"pl-c"}],[{"start":8,"end":47,"cssClass":"pl-c"}],[{"start":8,"end":76,"cssClass":"pl-c"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":19,"cssClass":"pl-en"},{"start":20,"end":24,"cssClass":"pl-s1"},{"start":26,"end":28,"cssClass":"pl-c1"},{"start":29,"end":33,"cssClass":"pl-en"},{"start":34,"end":39,"cssClass":"pl-s1"}],[],[{"start":4,"end":19,"cssClass":"pl-en"},{"start":5,"end":19,"cssClass":"pl-s1"}],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":11,"cssClass":"pl-en"},{"start":12,"end":16,"cssClass":"pl-s1"},{"start":18,"end":21,"cssClass":"pl-s1"},{"start":23,"end":33,"cssClass":"pl-v"},{"start":37,"end":71,"cssClass":"pl-c"}],[{"start":8,"end":83,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":13,"cssClass":"pl-s"}],[{"start":0,"end":50,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":15,"cssClass":"pl-s"}],[{"start":0,"end":76,"cssClass":"pl-s"}],[{"start":0,"end":11,"cssClass":"pl-s"}],[{"start":8,"end":13,"cssClass":"pl-k"},{"start":14,"end":33,"cssClass":"pl-v"}],[],[{"start":4,"end":13,"cssClass":"pl-en"},{"start":5,"end":13,"cssClass":"pl-s1"}],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":30,"cssClass":"pl-en"},{"start":31,"end":35,"cssClass":"pl-s1"}],[{"start":8,"end":54,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":93,"cssClass":"pl-s"}],[{"start":0,"end":64,"cssClass":"pl-s"}],[{"start":0,"end":11,"cssClass":"pl-s"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":25,"cssClass":"pl-en"},{"start":26,"end":30,"cssClass":"pl-s1"},{"start":32,"end":50,"cssClass":"pl-v"}],[],[{"start":4,"end":13,"cssClass":"pl-en"},{"start":5,"end":13,"cssClass":"pl-s1"}],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":24,"cssClass":"pl-en"},{"start":25,"end":29,"cssClass":"pl-s1"}],[{"start":8,"end":49,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":94,"cssClass":"pl-s"}],[{"start":0,"end":98,"cssClass":"pl-s"}],[{"start":0,"end":29,"cssClass":"pl-s"}],[{"start":0,"end":11,"cssClass":"pl-s"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":25,"cssClass":"pl-en"},{"start":26,"end":30,"cssClass":"pl-s1"},{"start":32,"end":44,"cssClass":"pl-v"}],[],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":16,"cssClass":"pl-en"}],[{"start":8,"end":12,"cssClass":"pl-s1"}],[{"start":8,"end":15,"cssClass":"pl-s1"},{"start":17,"end":31,"cssClass":"pl-v"}],[{"start":8,"end":20,"cssClass":"pl-s1"},{"start":22,"end":33,"cssClass":"pl-v"},{"start":34,"end":35,"cssClass":"pl-c1"},{"start":36,"end":40,"cssClass":"pl-s1"},{"start":41,"end":42,"cssClass":"pl-c1"},{"start":43,"end":47,"cssClass":"pl-c1"},{"start":48,"end":49,"cssClass":"pl-c1"},{"start":50,"end":54,"cssClass":"pl-c1"}],[{"start":6,"end":8,"cssClass":"pl-c1"},{"start":9,"end":23,"cssClass":"pl-v"}],[{"start":8,"end":36,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":13,"cssClass":"pl-s"}],[{"start":0,"end":54,"cssClass":"pl-s"}],[{"start":0,"end":69,"cssClass":"pl-s"}],[{"start":0,"end":55,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":16,"cssClass":"pl-s"}],[{"start":0,"end":68,"cssClass":"pl-s"}],[{"start":0,"end":48,"cssClass":"pl-s"}],[{"start":0,"end":11,"cssClass":"pl-s"}],[{"start":8,"end":21,"cssClass":"pl-s1"},{"start":22,"end":23,"cssClass":"pl-c1"},{"start":24,"end":28,"cssClass":"pl-c1"}],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":21,"cssClass":"pl-en"},{"start":22,"end":34,"cssClass":"pl-s1"},{"start":36,"end":40,"cssClass":"pl-s1"},{"start":44,"end":79,"cssClass":"pl-c"}],[{"start":12,"end":25,"cssClass":"pl-s1"},{"start":26,"end":27,"cssClass":"pl-c1"},{"start":28,"end":39,"cssClass":"pl-v"},{"start":40,"end":52,"cssClass":"pl-s1"}],[],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":21,"cssClass":"pl-en"},{"start":22,"end":35,"cssClass":"pl-s1"},{"start":37,"end":48,"cssClass":"pl-v"}],[{"start":12,"end":60,"cssClass":"pl-c"}],[{"start":12,"end":16,"cssClass":"pl-s1"},{"start":17,"end":29,"cssClass":"pl-s1"},{"start":30,"end":31,"cssClass":"pl-c1"},{"start":32,"end":45,"cssClass":"pl-s1"}],[],[{"start":8,"end":14,"cssClass":"pl-s1"},{"start":15,"end":16,"cssClass":"pl-c1"},{"start":17,"end":21,"cssClass":"pl-s1"},{"start":22,"end":25,"cssClass":"pl-en"},{"start":26,"end":40,"cssClass":"pl-en"},{"start":41,"end":48,"cssClass":"pl-s1"}],[],[{"start":8,"end":22,"cssClass":"pl-s1"},{"start":23,"end":24,"cssClass":"pl-c1"},{"start":25,"end":32,"cssClass":"pl-s1"}],[],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":21,"cssClass":"pl-en"},{"start":22,"end":34,"cssClass":"pl-s1"},{"start":36,"end":40,"cssClass":"pl-s1"},{"start":44,"end":79,"cssClass":"pl-c"}],[{"start":12,"end":24,"cssClass":"pl-s1"},{"start":25,"end":30,"cssClass":"pl-en"}],[{"start":12,"end":24,"cssClass":"pl-s1"},{"start":25,"end":31,"cssClass":"pl-en"},{"start":32,"end":36,"cssClass":"pl-s1"},{"start":37,"end":49,"cssClass":"pl-s1"}],[],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":21,"cssClass":"pl-en"},{"start":22,"end":28,"cssClass":"pl-s1"},{"start":30,"end":40,"cssClass":"pl-v"}],[{"start":12,"end":26,"cssClass":"pl-s1"},{"start":27,"end":28,"cssClass":"pl-c1"},{"start":29,"end":43,"cssClass":"pl-en"},{"start":44,"end":50,"cssClass":"pl-s1"},{"start":52,"end":67,"cssClass":"pl-s1"},{"start":67,"end":68,"cssClass":"pl-c1"},{"start":68,"end":73,"cssClass":"pl-c1"}],[{"start":8,"end":12,"cssClass":"pl-k"},{"start":13,"end":19,"cssClass":"pl-s1"},{"start":20,"end":22,"cssClass":"pl-c1"},{"start":23,"end":27,"cssClass":"pl-c1"}],[{"start":12,"end":26,"cssClass":"pl-s1"},{"start":27,"end":28,"cssClass":"pl-c1"},{"start":29,"end":36,"cssClass":"pl-s1"},{"start":37,"end":41,"cssClass":"pl-en"}],[],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":15,"cssClass":"pl-s1"},{"start":16,"end":28,"cssClass":"pl-s1"},{"start":29,"end":37,"cssClass":"pl-s"}],[{"start":12,"end":26,"cssClass":"pl-s1"},{"start":27,"end":34,"cssClass":"pl-s1"},{"start":35,"end":36,"cssClass":"pl-c1"},{"start":37,"end":52,"cssClass":"pl-v"}],[{"start":16,"end":30,"cssClass":"pl-s1"},{"start":30,"end":31,"cssClass":"pl-c1"},{"start":31,"end":35,"cssClass":"pl-s1"},{"start":36,"end":48,"cssClass":"pl-s1"},{"start":49,"end":57,"cssClass":"pl-s"}],[{"start":16,"end":35,"cssClass":"pl-s1"},{"start":35,"end":36,"cssClass":"pl-c1"},{"start":36,"end":40,"cssClass":"pl-s1"},{"start":41,"end":53,"cssClass":"pl-s1"},{"start":54,"end":78,"cssClass":"pl-s"}],[{"start":16,"end":28,"cssClass":"pl-s1"},{"start":28,"end":29,"cssClass":"pl-c1"},{"start":29,"end":33,"cssClass":"pl-s1"},{"start":34,"end":46,"cssClass":"pl-s1"},{"start":47,"end":61,"cssClass":"pl-s"}],[{"start":16,"end":34,"cssClass":"pl-s1"},{"start":34,"end":35,"cssClass":"pl-c1"},{"start":35,"end":38,"cssClass":"pl-en"},{"start":39,"end":46,"cssClass":"pl-s1"},{"start":47,"end":53,"cssClass":"pl-s1"}],[{"start":16,"end":34,"cssClass":"pl-s1"},{"start":34,"end":35,"cssClass":"pl-c1"},{"start":35,"end":49,"cssClass":"pl-s1"},{"start":50,"end":56,"cssClass":"pl-s1"}],[],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":15,"cssClass":"pl-s1"},{"start":16,"end":28,"cssClass":"pl-s1"},{"start":29,"end":50,"cssClass":"pl-s"},{"start":52,"end":54,"cssClass":"pl-c1"},{"start":55,"end":58,"cssClass":"pl-c1"},{"start":59,"end":63,"cssClass":"pl-c1"}],[{"start":12,"end":26,"cssClass":"pl-s1"},{"start":27,"end":47,"cssClass":"pl-s1"},{"start":48,"end":49,"cssClass":"pl-c1"},{"start":50,"end":54,"cssClass":"pl-s1"},{"start":55,"end":67,"cssClass":"pl-s1"},{"start":68,"end":89,"cssClass":"pl-s"}],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":15,"cssClass":"pl-s1"},{"start":16,"end":28,"cssClass":"pl-s1"},{"start":29,"end":50,"cssClass":"pl-s"},{"start":52,"end":54,"cssClass":"pl-c1"},{"start":55,"end":58,"cssClass":"pl-c1"},{"start":59,"end":63,"cssClass":"pl-c1"}],[{"start":12,"end":26,"cssClass":"pl-s1"},{"start":27,"end":47,"cssClass":"pl-s1"},{"start":48,"end":49,"cssClass":"pl-c1"},{"start":50,"end":54,"cssClass":"pl-s1"},{"start":55,"end":67,"cssClass":"pl-s1"},{"start":68,"end":89,"cssClass":"pl-s"}],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":15,"cssClass":"pl-s1"},{"start":16,"end":28,"cssClass":"pl-s1"},{"start":29,"end":46,"cssClass":"pl-s"}],[{"start":12,"end":82,"cssClass":"pl-c"}],[{"start":12,"end":76,"cssClass":"pl-c"}],[{"start":12,"end":80,"cssClass":"pl-c"}],[{"start":12,"end":35,"cssClass":"pl-s1"},{"start":36,"end":37,"cssClass":"pl-c1"}],[{"start":12,"end":23,"cssClass":"pl-s1"},{"start":24,"end":25,"cssClass":"pl-c1"},{"start":26,"end":30,"cssClass":"pl-s1"},{"start":31,"end":43,"cssClass":"pl-s1"},{"start":44,"end":61,"cssClass":"pl-s"}],[{"start":12,"end":15,"cssClass":"pl-k"},{"start":16,"end":24,"cssClass":"pl-s1"},{"start":25,"end":27,"cssClass":"pl-c1"},{"start":28,"end":34,"cssClass":"pl-s1"},{"start":35,"end":55,"cssClass":"pl-en"}],[{"start":16,"end":39,"cssClass":"pl-s1"},{"start":40,"end":46,"cssClass":"pl-en"},{"start":47,"end":58,"cssClass":"pl-s1"},{"start":59,"end":67,"cssClass":"pl-s1"}],[{"start":12,"end":26,"cssClass":"pl-s1"},{"start":27,"end":42,"cssClass":"pl-s1"},{"start":43,"end":44,"cssClass":"pl-c1"},{"start":45,"end":68,"cssClass":"pl-s1"}],[],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":29,"cssClass":"pl-s1"}],[],[],[{"start":0,"end":5,"cssClass":"pl-k"},{"start":6,"end":18,"cssClass":"pl-v"},{"start":19,"end":27,"cssClass":"pl-v"},{"start":31,"end":64,"cssClass":"pl-c"}],[{"start":4,"end":57,"cssClass":"pl-s"}],[],[],[{"start":0,"end":5,"cssClass":"pl-k"},{"start":6,"end":24,"cssClass":"pl-v"},{"start":25,"end":33,"cssClass":"pl-v"},{"start":37,"end":70,"cssClass":"pl-c"}],[{"start":4,"end":62,"cssClass":"pl-s"}],[],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":15,"cssClass":"pl-en"}],[{"start":8,"end":12,"cssClass":"pl-s1"}],[{"start":8,"end":22,"cssClass":"pl-s1"},{"start":24,"end":37,"cssClass":"pl-v"}],[{"start":8,"end":13,"cssClass":"pl-s1"},{"start":15,"end":31,"cssClass":"pl-v"}],[{"start":8,"end":16,"cssClass":"pl-s1"},{"start":18,"end":26,"cssClass":"pl-v"},{"start":27,"end":28,"cssClass":"pl-c1"},{"start":29,"end":33,"cssClass":"pl-c1"}],[{"start":6,"end":8,"cssClass":"pl-c1"},{"start":9,"end":14,"cssClass":"pl-s1"},{"start":15,"end":28,"cssClass":"pl-v"},{"start":30,"end":46,"cssClass":"pl-v"}],[{"start":8,"end":15,"cssClass":"pl-s1"},{"start":17,"end":22,"cssClass":"pl-s1"},{"start":23,"end":24,"cssClass":"pl-c1"},{"start":25,"end":30,"cssClass":"pl-en"},{"start":33,"end":40,"cssClass":"pl-en"}],[{"start":12,"end":26,"cssClass":"pl-s1"},{"start":26,"end":27,"cssClass":"pl-c1"},{"start":27,"end":41,"cssClass":"pl-s1"}],[{"start":12,"end":17,"cssClass":"pl-s1"},{"start":17,"end":18,"cssClass":"pl-c1"},{"start":18,"end":23,"cssClass":"pl-s1"}],[{"start":12,"end":20,"cssClass":"pl-s1"},{"start":20,"end":21,"cssClass":"pl-c1"},{"start":21,"end":29,"cssClass":"pl-s1"}],[],[],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":16,"cssClass":"pl-s1"},{"start":17,"end":32,"cssClass":"pl-s1"},{"start":33,"end":45,"cssClass":"pl-s1"},{"start":46,"end":48,"cssClass":"pl-c1"},{"start":49,"end":57,"cssClass":"pl-v"},{"start":58,"end":65,"cssClass":"pl-v"}],[{"start":12,"end":14,"cssClass":"pl-k"},{"start":15,"end":25,"cssClass":"pl-en"},{"start":26,"end":33,"cssClass":"pl-s1"},{"start":35,"end":45,"cssClass":"pl-v"}],[{"start":16,"end":65,"cssClass":"pl-c"}],[{"start":16,"end":23,"cssClass":"pl-s1"},{"start":24,"end":36,"cssClass":"pl-s1"},{"start":37,"end":38,"cssClass":"pl-c1"},{"start":39,"end":53,"cssClass":"pl-s1"},{"start":54,"end":66,"cssClass":"pl-s1"}],[{"start":12,"end":16,"cssClass":"pl-k"}],[{"start":16,"end":21,"cssClass":"pl-k"},{"start":22,"end":37,"cssClass":"pl-v"}],[{"start":20,"end":76,"cssClass":"pl-s"}],[{"start":20,"end":88,"cssClass":"pl-s"},{"start":31,"end":56,"cssClass":"pl-s1"},{"start":31,"end":32,"cssClass":"pl-kos"},{"start":32,"end":36,"cssClass":"pl-s1"},{"start":37,"end":46,"cssClass":"pl-s1"},{"start":47,"end":55,"cssClass":"pl-s1"},{"start":55,"end":56,"cssClass":"pl-kos"},{"start":72,"end":87,"cssClass":"pl-s1"},{"start":72,"end":73,"cssClass":"pl-kos"},{"start":73,"end":77,"cssClass":"pl-en"},{"start":78,"end":85,"cssClass":"pl-s1"},{"start":86,"end":87,"cssClass":"pl-kos"}],[],[],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":22,"cssClass":"pl-s1"},{"start":24,"end":29,"cssClass":"pl-s1"}],[],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":21,"cssClass":"pl-en"}],[{"start":8,"end":12,"cssClass":"pl-s1"}],[{"start":8,"end":13,"cssClass":"pl-s1"},{"start":15,"end":31,"cssClass":"pl-v"}],[{"start":8,"end":17,"cssClass":"pl-s1"},{"start":19,"end":27,"cssClass":"pl-v"}],[{"start":6,"end":8,"cssClass":"pl-c1"},{"start":9,"end":25,"cssClass":"pl-v"}],[{"start":8,"end":13,"cssClass":"pl-s1"},{"start":14,"end":15,"cssClass":"pl-c1"},{"start":16,"end":21,"cssClass":"pl-en"},{"start":24,"end":37,"cssClass":"pl-en"},{"start":38,"end":43,"cssClass":"pl-s1"},{"start":45,"end":54,"cssClass":"pl-s1"}],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":20,"cssClass":"pl-s1"},{"start":21,"end":23,"cssClass":"pl-c1"},{"start":24,"end":32,"cssClass":"pl-v"},{"start":33,"end":40,"cssClass":"pl-v"}],[{"start":12,"end":17,"cssClass":"pl-s1"},{"start":18,"end":33,"cssClass":"pl-s1"},{"start":34,"end":50,"cssClass":"pl-s1"},{"start":51,"end":70,"cssClass":"pl-en"},{"start":71,"end":74,"cssClass":"pl-en"},{"start":75,"end":79,"cssClass":"pl-s1"},{"start":80,"end":89,"cssClass":"pl-s1"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":20,"cssClass":"pl-s1"}]],"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/Qiskit/qiskit/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"basepasses.py","displayUrl":"https://github.com/Qiskit/qiskit/blob/main/qiskit/transpiler/basepasses.py?raw=true","headerInfo":{"blobSize":"8.56 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":"https://desktop.github.com","isGitLfs":false,"onBranch":true,"shortPath":"c09ee19","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2FQiskit%2Fqiskit%2Fblob%2Fmain%2Fqiskit%2Ftranspiler%2Fbasepasses.py","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"221","truncatedSloc":"181"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"Python","languageID":303,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/Qiskit/qiskit/blob/main/qiskit/transpiler/basepasses.py","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/Qiskit/qiskit/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/Qiskit/qiskit/raw/main/qiskit/transpiler/basepasses.py","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":4,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":false,"symbols":[{"name":"MetaPass","kind":"class","ident_start":1068,"ident_end":1076,"extent_start":1062,"extent_end":2967,"fully_qualified_name":"MetaPass","ident_utf16":{"start":{"line_number":30,"utf16_col":6},"end":{"line_number":30,"utf16_col":14}},"extent_utf16":{"start":{"line_number":30,"utf16_col":0},"end":{"line_number":67,"utf16_col":35}}},{"name":"__call__","kind":"function","ident_start":2120,"ident_end":2128,"extent_start":2116,"extent_end":2328,"fully_qualified_name":"MetaPass.__call__","ident_utf16":{"start":{"line_number":49,"utf16_col":8},"end":{"line_number":49,"utf16_col":16}},"extent_utf16":{"start":{"line_number":49,"utf16_col":4},"end":{"line_number":52,"utf16_col":28}}},{"name":"_freeze_init_parameters","kind":"function","ident_start":2356,"ident_end":2379,"extent_start":2352,"extent_end":2967,"fully_qualified_name":"MetaPass._freeze_init_parameters","ident_utf16":{"start":{"line_number":55,"utf16_col":8},"end":{"line_number":55,"utf16_col":31}},"extent_utf16":{"start":{"line_number":55,"utf16_col":4},"end":{"line_number":67,"utf16_col":35}}},{"name":"BasePass","kind":"class","ident_start":2976,"ident_end":2984,"extent_start":2970,"extent_end":7309,"fully_qualified_name":"BasePass","ident_utf16":{"start":{"line_number":70,"utf16_col":6},"end":{"line_number":70,"utf16_col":14}},"extent_utf16":{"start":{"line_number":70,"utf16_col":0},"end":{"line_number":178,"utf16_col":29}}},{"name":"__init__","kind":"function","ident_start":3072,"ident_end":3080,"extent_start":3068,"extent_end":3197,"fully_qualified_name":"BasePass.__init__","ident_utf16":{"start":{"line_number":73,"utf16_col":8},"end":{"line_number":73,"utf16_col":16}},"extent_utf16":{"start":{"line_number":73,"utf16_col":4},"end":{"line_number":76,"utf16_col":31}}},{"name":"__hash__","kind":"function","ident_start":3207,"ident_end":3215,"extent_start":3203,"extent_end":3248,"fully_qualified_name":"BasePass.__hash__","ident_utf16":{"start":{"line_number":78,"utf16_col":8},"end":{"line_number":78,"utf16_col":16}},"extent_utf16":{"start":{"line_number":78,"utf16_col":4},"end":{"line_number":79,"utf16_col":25}}},{"name":"__eq__","kind":"function","ident_start":3258,"ident_end":3264,"extent_start":3254,"extent_end":3558,"fully_qualified_name":"BasePass.__eq__","ident_utf16":{"start":{"line_number":81,"utf16_col":8},"end":{"line_number":81,"utf16_col":14}},"extent_utf16":{"start":{"line_number":81,"utf16_col":4},"end":{"line_number":86,"utf16_col":40}}},{"name":"run","kind":"function","ident_start":3588,"ident_end":3591,"extent_start":3584,"extent_end":3941,"fully_qualified_name":"BasePass.run","ident_utf16":{"start":{"line_number":89,"utf16_col":8},"end":{"line_number":89,"utf16_col":11}},"extent_utf16":{"start":{"line_number":89,"utf16_col":4},"end":{"line_number":98,"utf16_col":33}}},{"name":"is_transformation_pass","kind":"function","ident_start":3965,"ident_end":3987,"extent_start":3961,"extent_end":4273,"fully_qualified_name":"BasePass.is_transformation_pass","ident_utf16":{"start":{"line_number":101,"utf16_col":8},"end":{"line_number":101,"utf16_col":30}},"extent_utf16":{"start":{"line_number":101,"utf16_col":4},"end":{"line_number":107,"utf16_col":51}}},{"name":"is_analysis_pass","kind":"function","ident_start":4297,"ident_end":4313,"extent_start":4293,"extent_end":4653,"fully_qualified_name":"BasePass.is_analysis_pass","ident_utf16":{"start":{"line_number":110,"utf16_col":8},"end":{"line_number":110,"utf16_col":24}},"extent_utf16":{"start":{"line_number":110,"utf16_col":4},"end":{"line_number":117,"utf16_col":45}}},{"name":"__call__","kind":"function","ident_start":4663,"ident_end":4671,"extent_start":4659,"extent_end":7309,"fully_qualified_name":"BasePass.__call__","ident_utf16":{"start":{"line_number":119,"utf16_col":8},"end":{"line_number":119,"utf16_col":16}},"extent_utf16":{"start":{"line_number":119,"utf16_col":4},"end":{"line_number":178,"utf16_col":29}}},{"name":"AnalysisPass","kind":"class","ident_start":7318,"ident_end":7330,"extent_start":7312,"extent_end":7434,"fully_qualified_name":"AnalysisPass","ident_utf16":{"start":{"line_number":181,"utf16_col":6},"end":{"line_number":181,"utf16_col":18}},"extent_utf16":{"start":{"line_number":181,"utf16_col":0},"end":{"line_number":182,"utf16_col":57}}},{"name":"TransformationPass","kind":"class","ident_start":7443,"ident_end":7461,"extent_start":7437,"extent_end":8768,"fully_qualified_name":"TransformationPass","ident_utf16":{"start":{"line_number":185,"utf16_col":6},"end":{"line_number":185,"utf16_col":24}},"extent_utf16":{"start":{"line_number":185,"utf16_col":0},"end":{"line_number":220,"utf16_col":20}}},{"name":"execute","kind":"function","ident_start":7580,"ident_end":7587,"extent_start":7576,"extent_end":8430,"fully_qualified_name":"TransformationPass.execute","ident_utf16":{"start":{"line_number":188,"utf16_col":8},"end":{"line_number":188,"utf16_col":15}},"extent_utf16":{"start":{"line_number":188,"utf16_col":4},"end":{"line_number":210,"utf16_col":29}}},{"name":"update_status","kind":"function","ident_start":8440,"ident_end":8453,"extent_start":8436,"extent_end":8768,"fully_qualified_name":"TransformationPass.update_status","ident_utf16":{"start":{"line_number":212,"utf16_col":8},"end":{"line_number":212,"utf16_col":21}},"extent_utf16":{"start":{"line_number":212,"utf16_col":4},"end":{"line_number":220,"utf16_col":20}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"csrf_tokens":{"/Qiskit/qiskit/branches":{"post":"c2lfZOMxvtPOfByZlHvgl52O-ei3K3BMDOlVSpGHdEVS1R1IpFtu2eQT7QGh7sKHiKizEnmbinohu0K6vw3sIQ"},"/repos/preferences":{"post":"LneZcywYndtnmwNjaoyhS0B_PAiZObg024E4NnfxcETvjh4s6ziC7b4x9qzXOG3IXOiztfWcEoLPHR6rujIqDQ"}}},"title":"qiskit/qiskit/transpiler/basepasses.py at main ยท Qiskit/qiskit"}