Skip to content

Commit

Permalink
Remove qiskit.tools module (Qiskit#11515)
Browse files Browse the repository at this point in the history
* Remove qiskit.tools module

This commit removes all the functionality in `qiskit.tools` with the
exception of `parallel_map` which has been migrated to `qiskit.utils`.
This PR does not cover the removal of `qiskit.tools.jupyter` or
`qiskit.tools.monitor` which are covered by Qiskit#11513.

* Update qiskit/utils/__init__.py

Co-authored-by: Jake Lishman <jake@binhbar.com>

---------

Co-authored-by: Jake Lishman <jake@binhbar.com>
  • Loading branch information
mtreinish and jakelishman authored Jan 11, 2024
1 parent 5d5bfa9 commit 109d677
Show file tree
Hide file tree
Showing 23 changed files with 39 additions and 567 deletions.
1 change: 0 additions & 1 deletion docs/apidoc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ API Reference
qpy
quantum_info
result
tools
transpiler
transpiler_passes
transpiler_preset
Expand Down
6 changes: 0 additions & 6 deletions docs/apidoc/tools.rst

This file was deleted.

2 changes: 1 addition & 1 deletion qiskit/assembler/assemble_circuits.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
converters,
QobjHeader,
)
from qiskit.tools.parallel import parallel_map
from qiskit.utils.parallel import parallel_map


PulseLibrary = Dict[str, List[complex]]
Expand Down
2 changes: 1 addition & 1 deletion qiskit/compiler/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from qiskit.providers.backend import Backend
from qiskit.scheduler import ScheduleConfig
from qiskit.scheduler.schedule_circuit import schedule_circuit
from qiskit.tools.parallel import parallel_map
from qiskit.utils.parallel import parallel_map

logger = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion qiskit/passmanager/passmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

import dill

from qiskit.tools.parallel import parallel_map
from qiskit.utils.parallel import parallel_map
from .base_tasks import Task, PassManagerIR
from .exceptions import PassManagerError
from .flow_controllers import FlowControllerLinear
Expand Down
2 changes: 1 addition & 1 deletion qiskit/providers/fake_provider/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
from qiskit import QuantumCircuit
from qiskit.providers.fake_provider import FakeManilaV2
from qiskit import transpile
from qiskit.tools.visualization import plot_histogram
from qiskit.visualization import plot_histogram
# Get a fake backend from the fake provider
Expand Down
2 changes: 1 addition & 1 deletion qiskit/test/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
import unittest
from unittest.util import safe_repr

from qiskit.utils.parallel import get_platform_parallel_default
from qiskit.exceptions import QiskitWarning
from qiskit.tools.parallel import get_platform_parallel_default
from qiskit.utils import optionals as _optionals
from qiskit.circuit import QuantumCircuit
from .decorators import enforce_subclasses_call
Expand Down
37 changes: 0 additions & 37 deletions qiskit/tools/__init__.py

This file was deleted.

25 changes: 0 additions & 25 deletions qiskit/tools/events/__init__.py

This file was deleted.

195 changes: 0 additions & 195 deletions qiskit/tools/events/progressbar.py

This file was deleted.

Loading

0 comments on commit 109d677

Please sign in to comment.