diff --git a/crates/pyext/src/lib.rs b/crates/pyext/src/lib.rs index b7c89872bf8d..aba116d595c4 100644 --- a/crates/pyext/src/lib.rs +++ b/crates/pyext/src/lib.rs @@ -18,7 +18,7 @@ use qiskit_accelerate::{ error_map::error_map, euler_one_qubit_decomposer::euler_one_qubit_decomposer, nlayout::nlayout, optimize_1q_gates::optimize_1q_gates, pauli_exp_val::pauli_expval, results::results, sabre::sabre, sampled_exp_val::sampled_exp_val, sparse_pauli_op::sparse_pauli_op, - stochastic_swap::stochastic_swap, two_qubit_decompose::two_qubit_decompose, utils::utils, + stochastic_swap::stochastic_swap, target::target, two_qubit_decompose::two_qubit_decompose, utils::utils, vf2_layout::vf2_layout, }; @@ -39,6 +39,7 @@ fn _accelerate(m: &Bound) -> PyResult<()> { m.add_wrapped(wrap_pymodule!(sampled_exp_val))?; m.add_wrapped(wrap_pymodule!(sparse_pauli_op))?; m.add_wrapped(wrap_pymodule!(stochastic_swap))?; + m.add_wrapped(wrap_pymodule!(target))?; m.add_wrapped(wrap_pymodule!(two_qubit_decompose))?; m.add_wrapped(wrap_pymodule!(utils))?; m.add_wrapped(wrap_pymodule!(vf2_layout))?; diff --git a/qiskit/__init__.py b/qiskit/__init__.py index e7ec1f3b504c..355d63e89418 100644 --- a/qiskit/__init__.py +++ b/qiskit/__init__.py @@ -77,8 +77,8 @@ sys.modules["qiskit._accelerate.sampled_exp_val"] = qiskit._accelerate.sampled_exp_val sys.modules["qiskit._accelerate.sparse_pauli_op"] = qiskit._accelerate.sparse_pauli_op sys.modules["qiskit._accelerate.stochastic_swap"] = qiskit._accelerate.stochastic_swap -sys.modules["qiskit._accelerate.two_qubit_decompose"] = qiskit._accelerate.two_qubit_decompose sys.modules["qiskit._accelerate.target"] = qiskit._accelerate.target +sys.modules["qiskit._accelerate.two_qubit_decompose"] = qiskit._accelerate.two_qubit_decompose sys.modules["qiskit._accelerate.vf2_layout"] = qiskit._accelerate.vf2_layout from qiskit.exceptions import QiskitError, MissingOptionalLibraryError