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

Update Qiskit to v1.3.0 #144

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
4 changes: 2 additions & 2 deletions qiskit_ibm_transpiler/ai/routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,10 @@ def copy_dag_metadata(dag, target_dag):
DAGCircuit: An empty copy of self.
"""
target_dag.name = dag.name
target_dag._global_phase = dag._global_phase
target_dag.global_phase = dag.global_phase
target_dag.duration = dag.duration
target_dag.unit = dag.unit
target_dag.metadata = dag.metadata
target_dag._key_cache = dag._key_cache
# target_dag._key_cache = dag._key_cache

return target_dag
3 changes: 2 additions & 1 deletion qiskit_ibm_transpiler/wrappers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def __init__(
url_env_param = f"{path_param.upper()}_" if path_param else ""
url_env_var = f"QISKIT_IBM_TRANSPILER_{url_env_param}URL"

self.base_url = base_url
self.url = os.environ.get(url_env_var, url_with_path).rstrip("/")

token = token if token else _get_token_from_system()
Expand All @@ -93,7 +94,7 @@ def __init__(
}

def get_versions(self):
url = f"{self.url}/version"
url = f"{self.base_url}/version"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we need this change? Because it is only in the top level api?

Copy link
Contributor Author

@jesus-talavera-ibm jesus-talavera-ibm Dec 17, 2024

Choose a reason for hiding this comment

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

Yes, /version endpoint is only available at root level.
It was removed in the rest of endpoints to avoid redundancy, but since we didn't use it until now, client was not affected

resp = requests.get(
url,
headers=self.headers,
Expand Down
1 change: 1 addition & 0 deletions release-notes/unreleased/144.upgrade.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update Qiskit to v1.3.0.
4 changes: 2 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
qiskit==1.2.4
qiskit~=1.3
backoff~=2.0
qiskit_ibm_runtime>=0.23.0
qiskit-qasm3-import~=0.4
Expand All @@ -12,4 +12,4 @@ sphinx==7.2.6; python_version >= '3.9'
qiskit-sphinx-theme==1.16.1
sphinxcontrib-katex==0.9.9
networkx==2.8.5
qiskit_ibm_ai_local_transpiler==0.1.3
qiskit_ibm_ai_local_transpiler==0.2.0
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# putting multiple requirements on the same line will prevent qiskit-bot
# from correctly updating the versions for the qiskit packages.
requirements = [
"qiskit==1.2.4",
"qiskit~=1.3",
"backoff~=2.0",
"qiskit-qasm3-import~=0.4",
"requests~=2.0",
Expand Down Expand Up @@ -58,7 +58,7 @@
install_requires=requirements,
extras_require={
"ai-local-mode": [
"qiskit_ibm_ai_local_transpiler==0.1.3",
"qiskit_ibm_ai_local_transpiler==0.2.0",
"qiskit-ibm-runtime>=0.23.0",
],
},
Expand Down
Loading