Skip to content

Commit

Permalink
renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderivrii committed Oct 24, 2024
1 parent 86ebe2e commit 83d553e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ impl QubitContext {
}
}

pub fn high_level_synthesis_utils_mod(m: &Bound<PyModule>) -> PyResult<()> {
pub fn high_level_synthesis_mod(m: &Bound<PyModule>) -> PyResult<()> {
m.add_class::<QubitTracker>()?;
m.add_class::<QubitContext>()?;
Ok(())
Expand Down
2 changes: 1 addition & 1 deletion crates/accelerate/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub mod euler_one_qubit_decomposer;
pub mod filter_op_nodes;
pub mod gate_direction;
pub mod gates_in_basis;
pub mod high_level_synthesis_utils;
pub mod high_level_synthesis;
pub mod inverse_cancellation;
pub mod isometry;
pub mod nlayout;
Expand Down
2 changes: 1 addition & 1 deletion crates/pyext/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ fn _accelerate(m: &Bound<PyModule>) -> PyResult<()> {
add_submodule(m, ::qiskit_accelerate::nlayout::nlayout, "nlayout")?;
add_submodule(m, ::qiskit_accelerate::optimize_1q_gates::optimize_1q_gates, "optimize_1q_gates")?;
add_submodule(m, ::qiskit_accelerate::pauli_exp_val::pauli_expval, "pauli_expval")?;
add_submodule(m, ::qiskit_accelerate::high_level_synthesis_utils::high_level_synthesis_utils_mod, "high_level_synthesis_utils")?;
add_submodule(m, ::qiskit_accelerate::high_level_synthesis::high_level_synthesis_mod, "high_level_synthesis")?;
add_submodule(m, ::qiskit_accelerate::remove_diagonal_gates_before_measure::remove_diagonal_gates_before_measure, "remove_diagonal_gates_before_measure")?;
add_submodule(m, ::qiskit_accelerate::results::results, "results")?;
add_submodule(m, ::qiskit_accelerate::sabre::sabre, "sabre")?;
Expand Down
4 changes: 1 addition & 3 deletions qiskit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@
sys.modules["qiskit._accelerate.inverse_cancellation"] = _accelerate.inverse_cancellation
sys.modules["qiskit._accelerate.check_map"] = _accelerate.check_map
sys.modules["qiskit._accelerate.filter_op_nodes"] = _accelerate.filter_op_nodes
sys.modules["qiskit._accelerate.high_level_synthesis_utils"] = (
_accelerate.high_level_synthesis_utils
)
sys.modules["qiskit._accelerate.high_level_synthesis"] = _accelerate.high_level_synthesis


from qiskit.exceptions import QiskitError, MissingOptionalLibraryError
Expand Down
2 changes: 1 addition & 1 deletion qiskit/transpiler/passes/synthesis/high_level_synthesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
PowerModifier,
)

from qiskit._accelerate.high_level_synthesis_utils import QubitTracker, QubitContext
from qiskit._accelerate.high_level_synthesis import QubitTracker, QubitContext
from .plugin import HighLevelSynthesisPluginManager

if typing.TYPE_CHECKING:
Expand Down

0 comments on commit 83d553e

Please sign in to comment.