Skip to content

Commit 1a38a11

Browse files
authored
Revert "Deprecate Toshiba solvers (#557)" (#559)
This reverts commit 2722efd.
1 parent 2722efd commit 1a38a11

22 files changed

+2138
-75
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# coding=utf-8
2+
##
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License.
5+
##
6+
7+
from .term import *
8+
from .problem import *
9+
from .streaming_problem import *
10+
from .online_problem import *
11+
from azure.quantum.target.solvers import *
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import logging
2+
from typing import TYPE_CHECKING
3+
from azure.quantum.optimization import Problem
4+
5+
logger = logging.getLogger(__name__)
6+
7+
__all__ = ["OnlineProblem"]
8+
9+
if TYPE_CHECKING:
10+
from azure.quantum.workspace import Workspace
11+
12+
13+
class OnlineProblem(object):
14+
def __init__(self, name: str, blob_uri: str, **kw):
15+
super(OnlineProblem, self).__init__(**kw)
16+
self.name = name
17+
self.uploaded_blob_uri = blob_uri
18+
19+
def download(self, workspace: "Workspace") -> Problem:
20+
logger.warning("The problem will be downloaded to the client")
21+
return Problem.download(self, workspace)

0 commit comments

Comments
 (0)