Skip to content

Commit

Permalink
Removed EngagementManager no longer supported
Browse files Browse the repository at this point in the history
  • Loading branch information
KilianPoirier committed Sep 19, 2023
1 parent 7d6dcb2 commit beaf76d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
3 changes: 1 addition & 2 deletions src/openqaoa-core/openqaoa/backends/qaoa_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ def device_class_arg_mapper(
noisy: bool = None,
compiler_timeout: float = None,
execution_timeout: float = None,
client_configuration: QCSClientConfiguration = None,
client_configuration: QCSClient = None,
endpoint_id: str = None,
engagement_manager: EngagementManager = None,
folder_name: str = None,
s3_bucket_name: str = None,
aws_region: str = None,
Expand Down
1 change: 0 additions & 1 deletion src/openqaoa-pyquil/openqaoa_pyquil/backend_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"execution_timeout",
"client_configuration",
"endpoint_id",
"engagement_manager",
]
}
backend_args = {
Expand Down
7 changes: 0 additions & 7 deletions src/openqaoa-pyquil/openqaoa_pyquil/backends/devices.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from typing import List
from pyquil.api import QCSClient
from pyquil.api._engagement_manager import EngagementManager
from pyquil import get_qc

from openqaoa.backends.devices_core import DeviceBase
Expand All @@ -27,7 +26,6 @@ def __init__(
execution_timeout: float = 20.0,
client_configuration: QCSClient = None,
endpoint_id: str = None,
engagement_manager: EngagementManager = None,
):
"""
Parameters
Expand Down Expand Up @@ -62,9 +60,6 @@ def __init__(
endpoint_id: str
Optional quantum processor endpoint ID, as used in the
`QCS API Docs`_.
engagement_manager: EngagementManager
Optional engagement manager. If none is provided, a default one will
be created.
"""

self.device_name = device_name
Expand All @@ -75,7 +70,6 @@ def __init__(
self.execution_timeout = execution_timeout
self.client_configuration = client_configuration
self.endpoint_id = endpoint_id
self.engagement_manager = engagement_manager

self.quantum_computer = get_qc(
name=self.device_name,
Expand All @@ -85,7 +79,6 @@ def __init__(
execution_timeout=self.execution_timeout,
client_configuration=self.client_configuration,
endpoint_id=self.endpoint_id,
engagement_manager=self.engagement_manager,
)
self.n_qubits = len(self.quantum_computer.qubits())

Expand Down

0 comments on commit beaf76d

Please sign in to comment.