You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a StreamingProblem with an initial configuration applied, the QDK conversion for the problem into JSON is incorrect, causing submissions to Azure Quantum to fail. For example the problem:
from azure.quantum.optimization import StreamingProblem, Term, ParallelTempering
terms = [
Term(c=-9, indices=[0]),
Term(c=-3, indices=[1,0]),
Term(c=5, indices=[2,0])
]
# with initial configuration set
config = {'0': 1, '1': 1, '2': 0}
problem = StreamingProblem(workspace, name="Problem with Initial Configuration", terms=terms, initial_config=config)
solver = ParallelTempering(workspace, timeout=100)
url = problem.upload(workspace)
job = solver.submit(url)
job.get_results()
frtibble
changed the title
uploading streaming problems with initial configuration has incorrect formatting causing jobs to fail
uploading a StreamingProblem with initial configuration has incorrect formatting causing jobs to fail
Jun 22, 2022
When creating a
StreamingProblem
with an initial configuration applied, the QDK conversion for the problem into JSON is incorrect, causing submissions to Azure Quantum to fail. For example the problem:Is incorrectly formatted as:
which is not valid JSON.
The text was updated successfully, but these errors were encountered: