Skip to content

Commit

Permalink
Remove resource estimator from azure-quantum-python SDK (26574) (#654)
Browse files Browse the repository at this point in the history
* Started removing RE-related code

* Removed RE from tests and samples

* Deleted the azure-quantum-python/visualization folder

* Deleted empty azure-quantum/examples/README.md

* Restored a stripped-down version of visualization/build/visualization-lib-pr.yml to keep the PR-check pipeline from hanging

* Restored argument_types

* Deleted ErrorBudgetPartition import

* Deleted qiskit/backends/microsoft.py because it only supported RE

* Deleted some commented-out code

* Deleted visualization YAML stub

* Replace RE references in comments
  • Loading branch information
warren-jones authored Jan 15, 2025
1 parent cfbef2c commit bf08ff7
Show file tree
Hide file tree
Showing 68 changed files with 3 additions and 61,497 deletions.
2 changes: 1 addition & 1 deletion azure-quantum/azure/quantum/argument_types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Licensed under the MIT License.
##

"""Defines argument types for Microsoft Estimator"""
"""Defines argument types for QIR"""

from .types import EmptyArray, Pauli, Range, Result

Expand Down
5 changes: 0 additions & 5 deletions azure-quantum/azure/quantum/qiskit/backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@
QCIQPUBackend,
)

from azure.quantum.qiskit.backends.microsoft import (
MicrosoftBackend,
MicrosoftResourceEstimationBackend,
)

from .backend import AzureBackendBase

__all__ = [
Expand Down
149 changes: 0 additions & 149 deletions azure-quantum/azure/quantum/qiskit/backends/microsoft.py

This file was deleted.

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.
25 changes: 0 additions & 25 deletions azure-quantum/azure/quantum/qiskit/results/resource_estimator.py

This file was deleted.

15 changes: 0 additions & 15 deletions azure-quantum/azure/quantum/target/microsoft/__init__.py

This file was deleted.

35 changes: 0 additions & 35 deletions azure-quantum/azure/quantum/target/microsoft/job.py

This file was deleted.

Loading

0 comments on commit bf08ff7

Please sign in to comment.