Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove resource estimator from azure-quantum-python SDK (26574) #654

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
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
7 changes: 1 addition & 6 deletions azure-quantum/azure/quantum/qiskit/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import json
import re
from azure.quantum import Job
from azure.quantum.qiskit.results.resource_estimator import make_estimator_result

import logging
logger = logging.getLogger(__name__)
Expand All @@ -38,7 +37,6 @@
MICROSOFT_OUTPUT_DATA_FORMAT_V2 = "microsoft.quantum-results.v2"
IONQ_OUTPUT_DATA_FORMAT = "ionq.quantum-results.v1"
QUANTINUUM_OUTPUT_DATA_FORMAT = "honeywell.quantum-results.v1"
RESOURCE_ESTIMATOR_OUTPUT_DATA_FORMAT = "microsoft.resource-estimates.v1"

class AzureQuantumJob(JobV1):
def __init__(
Expand Down Expand Up @@ -96,10 +94,7 @@ def result(self, timeout=None, sampler_seed=None):
"error_data" : None if self._azure_job.details.error_data is None else self._azure_job.details.error_data.as_dict()
}

if self._azure_job.details.output_data_format == RESOURCE_ESTIMATOR_OUTPUT_DATA_FORMAT:
return make_estimator_result(result_dict)
else:
return Result.from_dict(result_dict)
return Result.from_dict(result_dict)

def cancel(self):
"""Attempt to cancel the job."""
Expand Down
Empty file.

This file was deleted.

11 changes: 3 additions & 8 deletions azure-quantum/azure/quantum/target/microsoft/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,8 @@
# Licensed under the MIT License.
##

"""Defines classes for interacting with Microsoft Estimator"""
"""Defines classes for interacting with Microsoft target"""

__all__ = ["ErrorBudgetPartition", "MicrosoftEstimator",
"MicrosoftEstimatorJob", "MicrosoftEstimatorResult",
"MicrosoftEstimatorParams", "QECScheme", "QubitParams"]
__all__ = ["QECScheme", "QubitParams"]

from .job import MicrosoftEstimatorJob
from .result import MicrosoftEstimatorResult
from .target import ErrorBudgetPartition, MicrosoftEstimator, \
MicrosoftEstimatorParams, QECScheme, QubitParams
from .target import QECScheme, QubitParams
35 changes: 0 additions & 35 deletions azure-quantum/azure/quantum/target/microsoft/job.py

This file was deleted.

Loading
Loading