Skip to content

Conversation

kt474
Copy link
Member

@kt474 kt474 commented Jun 26, 2025

Summary

This PR handles some pre-requisites of the IQP removal that will take place with #2289:

  • The new API does not have the instance parameter in the jobs() method, so it should be deprecated.
  • The current service.usage() method was only meant for IQP Classic. We should have it return the data from /instances/usage in the new API.
  • Update job.instance() to return the cloud CRN.
  • Deprecate instance option in RuntimeOptions (First check what it does, I'm not sure if this option does anything). We can actually leave RuntimeOptions alone in this PR and look to remove the whole class (Cleanup RuntimeOptions #2300). This class is not publicly documented and users are not supposed to set them directly.

Details and comments

Fixes #2295
Also related to #1829

@@ -1259,7 +1261,8 @@ def jobs(
if instance:
if self._channel in ["ibm_cloud", "ibm_quantum_platform"]:
raise IBMInputValueError(
"The 'instance' keyword is only supported for ``ibm_quantum`` runtime."
"The 'instance' keyword is only supported for ``ibm_quantum`` runtime. "
"This parameter will be removed in a future release."
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same with this case - passing in instance already raises an error for the new channels. Do we still have to formally deprecate and then remove? Or can we just add to the error message and tell users it's going to be removed.

Copy link
Collaborator

@ElePT ElePT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @kt474, the PR looks good, I just had a couple of minor comments and modified a bit the PR description to include details of what it's changing (for future reference).

@ElePT ElePT added this to the 0.41.0 milestone Jul 2, 2025
@ElePT ElePT mentioned this pull request Jul 2, 2025
@kt474
Copy link
Member Author

kt474 commented Jul 3, 2025

I think this PR is in a good spot to merge. If we find more issues in the removal PR we can handle them separately.

@kt474 kt474 requested a review from ElePT July 3, 2025 18:02
@kt474 kt474 added the Changelog: Deprecation Include in Deprecated section of changelog label Jul 3, 2025
Copy link
Collaborator

@ElePT ElePT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Kevin! the PR GLTM, I am just missing the deprecation warning mentioned in #2289 (comment). Maybe I can quickly push it myself.

@ElePT ElePT temporarily deployed to ibm-cloud-production July 4, 2025 13:13 — with GitHub Actions Inactive
@kt474 kt474 enabled auto-merge July 4, 2025 14:35
@kt474 kt474 disabled auto-merge July 4, 2025 14:35
@kt474 kt474 merged commit d4112af into Qiskit:main Jul 4, 2025
33 checks passed
kt474 added a commit that referenced this pull request Jul 6, 2025
* Add tags instance filtering (#2277)

* wip add tags & resource group instance prefs

* add resource_group preference

* add reno

* add test

* remove resource group & raise error correctly

* reno typo

* update integration test

* add unit test

* update tests and release note

* Fix small typos (#2299)

* fix typo in base_runtime_job.py

estimation infromation for this job. -> estimation information for this job.

* fix typo in runtime_job_v2.py

primitive exeuction. -> primitive execution.

* fix typo in noise_learner.py

layers that occurr more frequently. -> layers that occur more frequently.

* fix typo (#2302)

* Handle new IQP inconsistencies/breaking changes  (#2296)

* new IQP breaking changes

* remove delete_job test

* add release note

* remove instance RuntimeOption

* deprecate properly

* typo

* fix reno & runtimeoptions, add test

* address comments

* Add queue_usage deprecation

---------

Co-authored-by: ElePT <epenatap@gmail.com>

* black

---------

Co-authored-by: Kevin Tian <kevin.tian@ibm.com>
Co-authored-by: Inho Choi <79438062+q-inho@users.noreply.github.com>
Co-authored-by: Jessie Yu <jessieyu@us.ibm.com>
Co-authored-by: ElePT <epenatap@gmail.com>
@kt474 kt474 mentioned this pull request Jul 7, 2025
@kt474 kt474 deleted the iqp-inconsistencies branch July 17, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Deprecation Include in Deprecated section of changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IQP Classic removal followup
2 participants