Skip to content

Commit

Permalink
Fixes "phsyical" Typos (#12180)
Browse files Browse the repository at this point in the history
* fixes typo

* fixes typo
  • Loading branch information
andre-a-alves committed Apr 15, 2024
1 parent e0be97c commit 5421ec6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion qiskit/transpiler/passes/basis/unroll_3q_or_more.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def run(self, dag):

if self.target is not None:
# Treat target instructions as global since this pass can be run
# prior to layout and routing we don't have phsyical qubits from
# prior to layout and routing we don't have physical qubits from
# the circuit yet
if node.name in self.target:
continue
Expand Down
4 changes: 2 additions & 2 deletions qiskit/transpiler/passes/layout/apply_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ def run(self, dag):
}
for qreg in dag.qregs.values():
self.property_set["layout"].add_register(qreg)
virtual_phsyical_map = layout.get_virtual_bits()
virtual_physical_map = layout.get_virtual_bits()
for node in dag.topological_op_nodes():
qargs = [q[virtual_phsyical_map[qarg]] for qarg in node.qargs]
qargs = [q[virtual_physical_map[qarg]] for qarg in node.qargs]
new_dag.apply_operation_back(node.op, qargs, node.cargs, check=False)
else:
# First build a new layout object going from:
Expand Down

0 comments on commit 5421ec6

Please sign in to comment.