Skip to content

Completely remove pulse defaults #2238

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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
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
12 changes: 0 additions & 12 deletions qiskit_ibm_runtime/api/clients/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,3 @@ def backend_properties(
Backend properties.
"""
pass

@abstractmethod
def backend_pulse_defaults(self, backend_name: str) -> Dict:
"""Return the pulse defaults of the backend.

Args:
backend_name: The name of the backend.

Returns:
Backend pulse defaults.
"""
pass
11 changes: 0 additions & 11 deletions qiskit_ibm_runtime/api/clients/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,17 +316,6 @@ def backend_properties(
"""
return self._api.backend(backend_name).properties(datetime=datetime)

def backend_pulse_defaults(self, backend_name: str) -> Dict:
"""Return the pulse defaults of the IBM backend.

Args:
backend_name: The name of the IBM backend.

Returns:
Backend pulse defaults.
"""
return self._api.backend(backend_name).pulse_defaults()

def update_tags(self, job_id: str, tags: list) -> Response:
"""Update the tags of the job.

Expand Down
10 changes: 0 additions & 10 deletions qiskit_ibm_runtime/api/rest/cloud_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class CloudBackend(RestAdapterBase):
URL_MAP = {
"configuration": "/configuration",
"properties": "/properties",
"pulse_defaults": "/defaults",
"status": "/status",
}

Expand Down Expand Up @@ -67,15 +66,6 @@ def properties(self, datetime: Optional[python_datetime] = None) -> Dict[str, An
response["backend_name"] = self.backend_name
return response

def pulse_defaults(self) -> Dict[str, Any]:
"""Return backend pulse defaults.

Returns:
JSON response of pulse defaults.
"""
url = self.get_url("pulse_defaults")
return self.session.get(url, headers=self._HEADER_JSON_ACCEPT).json()

def status(self) -> Dict[str, Any]:
"""Return backend status.

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ class FakeAlgiers(fake_backend.FakeBackendV2):
dirname = os.path.dirname(__file__) # type: ignore
conf_filename = "conf_algiers.json" # type: ignore
props_filename = "props_algiers.json" # type: ignore
defs_filename = "defs_algiers.json" # type: ignore
backend_name = "fake_algiers" # type: ignore

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ class FakeArmonkV2(fake_backend.FakeBackendV2):
dirname = os.path.dirname(__file__) # type: ignore
conf_filename = "conf_armonk.json" # type: ignore
props_filename = "props_armonk.json" # type: ignore
defs_filename = "defs_armonk.json" # type: ignore
backend_name = "fake_armonk" # type: ignore

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ class FakeAthensV2(fake_backend.FakeBackendV2):
dirname = os.path.dirname(__file__) # type: ignore
conf_filename = "conf_athens.json" # type: ignore
props_filename = "props_athens.json" # type: ignore
defs_filename = "defs_athens.json" # type: ignore
backend_name = "fake_athens" # type: ignore

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ class FakeAuckland(fake_backend.FakeBackendV2):
dirname = os.path.dirname(__file__) # type: ignore
conf_filename = "conf_auckland.json" # type: ignore
props_filename = "props_auckland.json" # type: ignore
defs_filename = "defs_auckland.json" # type: ignore
backend_name = "fake_auckland" # type: ignore

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ class FakeBelemV2(fake_backend.FakeBackendV2):
dirname = os.path.dirname(__file__) # type: ignore
conf_filename = "conf_belem.json" # type: ignore
props_filename = "props_belem.json" # type: ignore
defs_filename = "defs_belem.json" # type: ignore
backend_name = "fake_belem" # type: ignore

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ class FakeBoeblingenV2(fake_backend.FakeBackendV2):
dirname = os.path.dirname(__file__) # type: ignore
conf_filename = "conf_boeblingen.json" # type: ignore
props_filename = "props_boeblingen.json" # type: ignore
defs_filename = "defs_boeblingen.json" # type: ignore
backend_name = "fake_boeblingen" # type: ignore

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ class FakeBogotaV2(fake_backend.FakeBackendV2):
dirname = os.path.dirname(__file__) # type: ignore
conf_filename = "conf_bogota.json" # type: ignore
props_filename = "props_bogota.json" # type: ignore
defs_filename = "defs_bogota.json" # type: ignore
backend_name = "fake_bogota" # type: ignore

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ class FakeBrisbane(fake_backend.FakeBackendV2):
dirname = os.path.dirname(__file__) # type: ignore
conf_filename = "conf_brisbane.json" # type: ignore
props_filename = "props_brisbane.json" # type: ignore
defs_filename = "defs_brisbane.json" # type: ignore
backend_name = "fake_brisbane" # type: ignore

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ class FakeBrooklynV2(fake_backend.FakeBackendV2):
dirname = os.path.dirname(__file__) # type: ignore
conf_filename = "conf_brooklyn.json" # type: ignore
props_filename = "props_brooklyn.json" # type: ignore
defs_filename = "defs_brooklyn.json" # type: ignore
backend_name = "fake_brooklyn" # type: ignore

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ class FakeCairoV2(fake_backend.FakeBackendV2):
dirname = os.path.dirname(__file__) # type: ignore
conf_filename = "conf_cairo.json" # type: ignore
props_filename = "props_cairo.json" # type: ignore
defs_filename = "defs_cairo.json" # type: ignore
backend_name = "fake_cairo" # type: ignore

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ class FakeCasablancaV2(fake_backend.FakeBackendV2):
dirname = os.path.dirname(__file__) # type: ignore
conf_filename = "conf_casablanca.json" # type: ignore
props_filename = "props_casablanca.json" # type: ignore
defs_filename = "defs_casablanca.json" # type: ignore
backend_name = "fake_casablanca" # type: ignore

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ class FakeCusco(fake_backend.FakeBackendV2):
dirname = os.path.dirname(__file__) # type: ignore
conf_filename = "conf_cusco.json" # type: ignore
props_filename = "props_cusco.json" # type: ignore
defs_filename = "defs_cusco.json" # type: ignore
backend_name = "fake_cusco" # type: ignore

This file was deleted.

1 change: 0 additions & 1 deletion qiskit_ibm_runtime/fake_provider/backends/fez/fake_fez.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ class FakeFez(fake_backend.FakeBackendV2):
dirname = os.path.dirname(__file__) # type: ignore
conf_filename = "conf_fez.json" # type: ignore
props_filename = "props_fez.json" # type: ignore
defs_filename = "defs_fez.json" # type: ignore
backend_name = "fake_fez" # type: ignore

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@ class FakeFractionalBackend(fake_backend.FakeBackendV2):
dirname = os.path.dirname(__file__) # type: ignore
conf_filename = "conf_fractional.json" # type: ignore
props_filename = "props_fractional.json" # type: ignore
defs_filename = "defs_fractional.json" # type: ignore
backend_name = "fake_fractional" # type: ignore

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ class FakeGeneva(fake_backend.FakeBackendV2):
dirname = os.path.dirname(__file__) # type: ignore
conf_filename = "conf_geneva.json" # type: ignore
props_filename = "props_geneva.json" # type: ignore
defs_filename = "defs_geneva.json" # type: ignore
backend_name = "fake_geneva" # type: ignore

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ class FakeGuadalupeV2(fake_backend.FakeBackendV2):
dirname = os.path.dirname(__file__) # type: ignore
conf_filename = "conf_guadalupe.json" # type: ignore
props_filename = "props_guadalupe.json" # type: ignore
defs_filename = "defs_guadalupe.json" # type: ignore
backend_name = "fake_guadalupe" # type: ignore

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ class FakeHanoiV2(fake_backend.FakeBackendV2):
dirname = os.path.dirname(__file__) # type: ignore
conf_filename = "conf_hanoi.json" # type: ignore
props_filename = "props_hanoi.json" # type: ignore
defs_filename = "defs_hanoi.json" # type: ignore
backend_name = "fake_hanoi" # type: ignore

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ class FakeJakartaV2(fake_backend.FakeBackendV2):
dirname = os.path.dirname(__file__) # type: ignore
conf_filename = "conf_jakarta.json" # type: ignore
props_filename = "props_jakarta.json" # type: ignore
defs_filename = "defs_jakarta.json" # type: ignore
backend_name = "fake_jakarta" # type: ignore

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ class FakeKawasaki(fake_backend.FakeBackendV2):
dirname = os.path.dirname(__file__) # type: ignore
conf_filename = "conf_kawasaki.json" # type: ignore
props_filename = "props_kawasaki.json" # type: ignore
defs_filename = "defs_kawasaki.json" # type: ignore
backend_name = "fake_kawasaki" # type: ignore

This file was deleted.

Loading