Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion MIGRATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ result = job.result()
| IBMQBackend | IBMBackend |
| IBMQBackendService | IBMBackendService |
| IBMQJob | IBMJob |
| IBMQRandomService | IBMRandomService |
| IBMQError | IBMError |
| IBMQProviderError | IBMProviderError |
| IBMQAccountError | None (Removed) |
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# that they have been altered from the originals.


.PHONY: lint style test mypy test1 test2 test3 runtime_integration
.PHONY: lint style test mypy test1 test2 test3 runtime_integration

lint:
pylint -rn qiskit_ibm test
Expand All @@ -30,7 +30,7 @@ test1:
python -m unittest -v test/ibm/test_ibm_backend.py test/ibm/test_account_client.py test/ibm/test_ibm_job_states.py test/ibm/test_tutorials.py test/ibm/test_basic_server_paths.py test/ibm/test_proxies.py test/ibm/test_ibm_integration.py test/ibm/test_ibm_logger.py test/ibm/test_filter_backends.py test/ibm/test_registration.py

test2:
python -m unittest -v test/ibm/test_ibm_qasm_simulator.py test/ibm/test_serialization.py test/ibm/test_jupyter.py test/ibm/test_composite_job.py test/ibm/test_random.py test/ibm/test_ibm_provider.py
python -m unittest -v test/ibm/test_ibm_qasm_simulator.py test/ibm/test_serialization.py test/ibm/test_jupyter.py test/ibm/test_composite_job.py test/ibm/test_ibm_provider.py

test3:
python -m unittest -v test/ibm/test_ibm_job_attributes.py test/ibm/test_ibm_job.py test/ibm/websocket/test_websocket.py test/ibm/websocket/test_websocket_integration.py
Expand Down
1 change: 0 additions & 1 deletion docs/apidocs/ibm-provider.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ Qiskit IBM Quantum Provider API Reference
ibm_visualization
ibm_jupyter
ibm_utils
ibm_random
6 changes: 0 additions & 6 deletions docs/apidocs/ibm_random.rst

This file was deleted.

90 changes: 0 additions & 90 deletions qiskit_ibm/api/clients/random.py

This file was deleted.

85 changes: 0 additions & 85 deletions qiskit_ibm/api/rest/random.py

This file was deleted.

4 changes: 1 addition & 3 deletions qiskit_ibm/hub_group_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ def __init__(
# Initialize the internal list of backends.
self._backends: Dict[str, IBMBackend] = {}
self._service_urls = {
'backend': self.credentials.url,
'experiment': self.credentials.experiment_url,
'random': self.credentials.extractor_url
'backend': self.credentials.url
}

@property
Expand Down
31 changes: 3 additions & 28 deletions qiskit_ibm/ibm_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
from .hub_group_project import HubGroupProject # pylint: disable=cyclic-import
from .ibm_backend import IBMBackend # pylint: disable=cyclic-import
from .ibm_backend_service import IBMBackendService # pylint: disable=cyclic-import
from .random.ibm_random_service import IBMRandomService # pylint: disable=cyclic-import

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -139,9 +138,7 @@ def __init__(
* verify (bool): verify the server's TLS certificate.

Returns:
An instance of IBMProvider with services like :class:`~qiskit_ibm.IBMBackendService` and
:class:`~qiskit_ibm.random.IBMRandomService`
as available to the account.
An instance of IBMProvider

Raises:
IBMProviderCredentialsInvalidFormat: If the default hub/group/project saved on
Expand Down Expand Up @@ -381,20 +378,14 @@ def _get_hgps(
def _initialize_services(self) -> None:
"""Initialize all services."""
self._backend = None
self._random = None
hgps = self._get_hgps()
for hgp in hgps:
# Initialize backend service
if not self._backend:
self._backend = IBMBackendService(self, hgp)
# Initialize other services.
if not self._random:
self._random = IBMRandomService(self, hgp) \
if hgp.has_service('random') else None
if all([self._backend, self._random]):
if self._backend:
break
self._services = {'backend': self._backend,
'random': self._random}
self._services = {'backend': self._backend}

@property
def backend(self) -> IBMBackendService:
Expand All @@ -405,22 +396,6 @@ def backend(self) -> IBMBackendService:
"""
return self._backend

@property
def random(self) -> IBMRandomService:
"""Return the random number service.

Returns:
The random number service instance.

Raises:
IBMNotAuthorizedError: If the account is not authorized to use
the service.
"""
if self._random:
return self._random
else:
raise IBMNotAuthorizedError("You are not authorized to use the service.")

def active_account(self) -> Optional[Dict[str, str]]:
"""Return the IBM Quantum account currently in use for the session.

Expand Down
50 changes: 0 additions & 50 deletions qiskit_ibm/random/__init__.py

This file was deleted.

52 changes: 0 additions & 52 deletions qiskit_ibm/random/baserandomservice.py

This file was deleted.

Loading