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

Fast forward experimental-0.2 #1464

Merged
merged 103 commits into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
dfc79aa
Migrate fake backends from `qiskit.providers.fake_provider` (#1140)
ElePT Nov 16, 2023
5b66120
Fix BYOB job results bytes typing issue (#1220)
kt474 Nov 16, 2023
b778615
Fix fake backends integration test (#1225)
ElePT Nov 17, 2023
0fe20cd
Added deprecation warning when using qiskitrc file (#1219)
merav-aharoni Nov 17, 2023
8fa0472
Update session.from_id() (#1163)
kt474 Nov 17, 2023
5271642
Prepare release 0.15.0 (#1226)
kt474 Nov 17, 2023
2c6c427
Update main branch 0.16.0 (#1227)
kt474 Nov 17, 2023
8205a37
Revert `Session.from_id 0.15.0` changes (#1229)
kt474 Nov 17, 2023
0b64fb0
Prepare release 0.15.1 (#1230)
kt474 Nov 17, 2023
c8eb7c9
Update main branch to 0.16.0 again (#1232)
kt474 Nov 17, 2023
ea7872b
Remove all code related to custom programs (#1192)
kt474 Nov 28, 2023
0902c98
Make sessions thread safe (#1196)
delapuente Nov 28, 2023
fb8732d
Instance & channel_strategy validation (#1233)
kt474 Nov 28, 2023
ef06c1a
Prepare release 0.16.1 (#1239)
jyu00 Nov 28, 2023
8f23c9d
update to 0.17 (#1240)
jyu00 Nov 28, 2023
a9350ac
Stop referring to qiskit.org in API docs (#1242)
Eric-Arellano Nov 28, 2023
af432b7
Add job.properties() method (#1252)
kt474 Dec 4, 2023
a618de6
Remove non-API docs and translations (#1256)
Eric-Arellano Dec 4, 2023
5010416
Raise error if backend retrieved not in current instance (#1249)
kt474 Dec 5, 2023
6cb18d0
Fix backend_converter `faulty_qubit` name error (#1257)
kt474 Dec 5, 2023
d0600cb
Update Tutorial section names (#1241)
pandasa123 Dec 5, 2023
e9faa57
make test_backend_wrong_instance IQP only (#1258)
kt474 Dec 5, 2023
40b3076
Add pointer to qiskit/documentation issues (#1260)
abbycross Dec 5, 2023
b264bf1
Update `test_backend_wrong_instance` (#1259)
kt474 Dec 5, 2023
f2e24e4
Don't block for the first job in a session (#1170)
kt474 Dec 6, 2023
f36b2a9
Add `activated_at` field to session.details() (#1266)
kt474 Dec 7, 2023
0f9cc6f
Revert "Don't block for the first job in a session (#1170)" (#1267)
kt474 Dec 7, 2023
b849c70
Prepare release 0.17.0 (#1268)
kt474 Dec 8, 2023
517694a
update main branch 0.17.1 (#1269)
kt474 Dec 8, 2023
4d06ac3
Remove test_session_no_backend (#1272)
kt474 Dec 10, 2023
dfc0fe8
Added RuntimeJob.queue_info() method (#1210)
merav-aharoni Dec 11, 2023
7173af8
Replace programs with primitives in api docs (#1281)
kt474 Dec 14, 2023
bdbbade
Deprecate service.runtime (#1278)
kt474 Dec 18, 2023
91c5a58
Removed support for qiskitrc file (#1121)
merav-aharoni Dec 18, 2023
a1f36b4
Add max_time parameter to IBMBackend.open_session() (#1274)
merav-aharoni Dec 20, 2023
86c41e0
Migrate fake backend base classes (#1270)
ElePT Dec 20, 2023
e57edb3
Add Q-CTRL integration tests (#1173)
kt474 Dec 20, 2023
9abe0c1
update grover tutorial equation (#1293)
kt474 Jan 2, 2024
2d0d5eb
Add dynamic circuits backend filter (#1291)
kt474 Jan 2, 2024
f3dbad0
switch docs from mathjax to katex (#1301)
kevinsung Jan 2, 2024
e9aa596
Remove qiskit.org links (#1302)
kt474 Jan 3, 2024
005aa9b
Update session_id docstring (#1304)
kt474 Jan 4, 2024
781295b
Update provider and qiskit versions (#1305)
kt474 Jan 8, 2024
872e391
Exclude params on job retrieval by default (#1308)
kt474 Jan 10, 2024
7fad461
Reactive the viewcode extension for docs (#1312)
Eric-Arellano Jan 12, 2024
bde88f8
Add config files to manifest (#1319)
ElePT Jan 17, 2024
542ab18
Fix pip environment resolution (#1329)
jakelishman Jan 22, 2024
8723ccf
Use IBM-Provider-vendored pub/sub mechanism (#1328)
jakelishman Jan 22, 2024
385e10e
Add transpiler tests (#1323)
kt474 Jan 25, 2024
c1453f4
Prepare release 0.18.0 (#1335)
kt474 Jan 25, 2024
3de8e82
Update main branch 0.18.1 (#1336)
kt474 Jan 25, 2024
786b494
Turn off qiskit.org docs deploy (#1340)
Eric-Arellano Jan 26, 2024
6365dd9
Remove `qiskit.test` (#1292)
kt474 Jan 29, 2024
6c2cf0e
Add missing API Refs to docs (#1343)
kaelynj Jan 29, 2024
4074347
Set use_symengine on qpy generation if symengine is installed (#1355)
mtreinish Jan 31, 2024
959b9ae
Fix for unit tests (#1356)
dieris Jan 31, 2024
d4d55e5
Update flaky integration tests (#1359)
kt474 Jan 31, 2024
9cf11bd
Fix bad Sphinx API doc Provider naming (#1360)
Eric-Arellano Jan 31, 2024
481725b
Merge qiskit-ibm-provider into qiskit-ibm-runtime (#1285)
kt474 Feb 1, 2024
5bc3b42
Update invalid token test (#1367)
kt474 Feb 1, 2024
bbfcb4f
Copy pub/sub code into qiskit-ibm-runtime (#1349)
kt474 Feb 1, 2024
7789fb3
Remove mthree from requirements-dev (#1370)
kt474 Feb 2, 2024
f4d2853
Handle Qiskit 1.0 removals (#1363)
kt474 Feb 5, 2024
bf33ce8
Copy over provider session & remove qiskit-ibm-provider (#1368)
kt474 Feb 5, 2024
482a9f0
Handle qpy serialization across versions and delete vendored fork (#1…
mtreinish Feb 5, 2024
2fb0252
Run integration tests against Qiskit main (#1376)
kt474 Feb 5, 2024
7f93470
Fix qiskit main integratino tests cron job (#1379)
kt474 Feb 5, 2024
bd7885c
Prepare release 0.19.0 (#1380)
kt474 Feb 6, 2024
bf608bd
Update main branch version 0.19.1 (#1382)
kt474 Feb 6, 2024
a78c5ed
Porting qiskit-ibm-provider/787: Fix `DynamicCircuitInstructionDurati…
1ucian0 Feb 6, 2024
7890170
Cast use_symengine input to a bool (#1385)
mtreinish Feb 7, 2024
72ed540
Prepare release 0.19.1 (#1386)
kt474 Feb 7, 2024
7548cfa
Update main branch version 0.19.2 (#1388)
kt474 Feb 7, 2024
5743f60
Use barrier labels to define intervals for DD (#1358)
dieris Feb 10, 2024
e6df8ef
Remove remaining qiskit.org links (#1397)
Eric-Arellano Feb 12, 2024
2ef4b00
Support Python 3.12 (#1347)
kt474 Feb 13, 2024
aadd5dc
Add deprecation policy (#1405)
jyu00 Feb 14, 2024
c37c770
Fix scheduling in control flow with instructions of non-uniform durat…
dieris Feb 15, 2024
ee6f6ae
Add deprecation warning for abstract circuits (#1404)
kt474 Feb 15, 2024
940adc5
Fix docs build with Qiskit 1.0 (#1411)
kt474 Feb 16, 2024
1c0bf24
Use POST /sessions endpoint (#1372)
kt474 Feb 19, 2024
81d72d5
Use POST /sessions in backend.run sessions (#1415)
kt474 Feb 20, 2024
b7f4b30
Prepare release 0.20.0 (#1418)
kt474 Feb 20, 2024
76d1d13
Update main branch version 0.20.1 (#1419)
kt474 Feb 20, 2024
08c419b
Update ISA validation (#1414)
jyu00 Feb 23, 2024
88da374
Fix bug with retrieving fake backends (#1402)
kt474 Feb 23, 2024
08e95b6
Update sessions mode release note (#1430)
kt474 Feb 27, 2024
53db91e
Add warning if no backend provided on cloud channel (#1425)
kt474 Feb 27, 2024
c5abb2b
Fix missing releases notes before Runtime 0.9 (#1434)
Eric-Arellano Feb 27, 2024
a6af142
Use sphinx.ext.linkcode for more precise source code links (#1431)
melechlapson Feb 28, 2024
b5290b6
Update deprecated actions in workflows (#1439)
melechlapson Feb 28, 2024
c6d0c7a
Fix deprecated `upload-artifact` GitHub action (#1441)
melechlapson Feb 28, 2024
36b995b
Fix bad tox.ini passenv setting (#1445)
Eric-Arellano Feb 28, 2024
4feb02f
Handle control flow instructions in Target generation (#1443)
mtreinish Feb 28, 2024
e152d12
Update backend() type hint to BackendV2 (#1442)
kt474 Feb 28, 2024
fba5ce1
Updates to tutorials for 1.0 + ISA changes (#1408)
pandasa123 Feb 29, 2024
e151d69
Migrate from `pkg_resources` to `importlib.metadata` (#1449)
garrison Feb 29, 2024
5785425
Add fake backends for newer IBM backends (#1440)
mtreinish Feb 29, 2024
2666259
Run q-ctrl tests nightly (#1452)
kt474 Mar 1, 2024
ee086b0
Raise if abstract circuits are used (#1437)
jyu00 Mar 4, 2024
10ab8a8
Merge branch 'main' of https://github.com/Qiskit/qiskit-ibm-runtime i…
jyu00 Mar 4, 2024
2694d5c
fix merge issues
jyu00 Mar 4, 2024
e38278c
delete extra line
jyu00 Mar 4, 2024
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
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ jobs:
name: Run code quality checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.9
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install dependencies
Expand All @@ -45,11 +45,11 @@ jobs:
name: Build documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.9
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install dependencies
Expand All @@ -69,7 +69,7 @@ jobs:
- name: Build documentation
run: tox -edocs
- name: Upload documentation
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: html_docs
path: docs/_build/html
Expand All @@ -88,11 +88,11 @@ jobs:
STREAM_LOG: True
QISKIT_IN_PARALLEL: True
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -102,12 +102,12 @@ jobs:
- name: Run unit tests
run: make unit-test-coverage
- name: Report coverage to coveralls.io
uses: coverallsapp/github-action@1.1.3
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: unit-tests_python${{ matrix.python-version }}-${{ matrix.os }}
parallel: true
path-to-lcov: coverage.lcov
file: coverage.lcov
integration-tests:
if: github.event_name == 'push' && github.repository_owner == 'Qiskit'
# only kick-off resource intensive integration tests if unit tests and all basic checks succeeded
Expand All @@ -130,11 +130,11 @@ jobs:
STREAM_LOG: True
QISKIT_IN_PARALLEL: True
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -150,7 +150,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Notify coveralls.io that all parallel tests have finished
uses: coverallsapp/github-action@1.1.3
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ jobs:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install deps
run: pip install -U pip setuptools build
- name: Build sdist
run: python3 -m build
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: ./dist/*
- name: Deploy to Pypi
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.9.12'
- name: Install dependencies
Expand All @@ -25,7 +25,7 @@ jobs:
- name: Build docs
run: tox -e docs
- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: html_docs
path: docs/_build/html
4 changes: 2 additions & 2 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ jobs:
STREAM_LOG: True
QISKIT_IN_PARALLEL: True
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests-qiskit-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ jobs:
STREAM_LOG: True
QISKIT_IN_PARALLEL: True
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ jobs:
STREAM_LOG: True
QISKIT_IN_PARALLEL: True
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/q-ctrl-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

name: Q-CTRL Tests
on:
schedule:
- cron: '0 1 * * *'
push:
tags:
- "*"
Expand All @@ -37,11 +39,11 @@ jobs:
STREAM_LOG: True
QISKIT_IN_PARALLEL: True
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit-tests-terra-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:
STREAM_LOG: True
QISKIT_IN_PARALLEL: True
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.9
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install dependencies
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,6 @@ Qconfig.py
.DS_Store

/docs/stubs/

# Pycharm
.idea
76 changes: 75 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
# that they have been altered from the originals.

# -- Path setup --------------------------------------------------------------
import inspect
import os
import re
import sys

sys.path.insert(0, os.path.abspath('.'))
Expand All @@ -34,7 +36,7 @@
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
# This is used by qiskit/documentation to generate links to github.com.
"sphinx.ext.viewcode",
"sphinx.ext.linkcode",
'jupyter_sphinx',
'sphinx_autodoc_typehints',
'reno.sphinxext',
Expand Down Expand Up @@ -117,3 +119,75 @@
html_last_updated_fmt = '%Y/%m/%d'
html_sourcelink_suffix = ''
autoclass_content = 'both'


# ----------------------------------------------------------------------------------
# Source code links
# ----------------------------------------------------------------------------------

def determine_github_branch() -> str:
"""Determine the GitHub branch name to use for source code links.

We need to decide whether to use `stable/<version>` vs. `main` for dev builds.
Refer to https://docs.github.com/en/actions/learn-github-actions/variables
for how we determine this with GitHub Actions.
"""
# If CI env vars not set, default to `main`. This is relevant for local builds.
if "GITHUB_REF_NAME" not in os.environ:
return "main"

# PR workflows set the branch they're merging into.
if base_ref := os.environ.get("GITHUB_BASE_REF"):
return base_ref

ref_name = os.environ["GITHUB_REF_NAME"]

# Check if the ref_name is a tag like `1.0.0` or `1.0.0rc1`. If so, we need
# to transform it to a Git branch like `stable/1.0`.
version_without_patch = re.match(r"(\d+\.\d+)", ref_name)
return (
f"stable/{version_without_patch.group()}"
if version_without_patch
else ref_name
)


GITHUB_BRANCH = determine_github_branch()


def linkcode_resolve(domain, info):
if domain != "py":
return None

module_name = info["module"]
module = sys.modules.get(module_name)
if module is None or "qiskit_ibm_runtime" not in module_name:
return None

obj = module
for part in info["fullname"].split("."):
try:
obj = getattr(obj, part)
except AttributeError:
return None
is_valid_code_object = (
inspect.isclass(obj) or inspect.ismethod(obj) or inspect.isfunction(obj)
)
if not is_valid_code_object:
return None
try:
full_file_name = inspect.getsourcefile(obj)
except TypeError:
return None
if full_file_name is None or "/qiskit_ibm_runtime/" not in full_file_name:
return None
file_name = full_file_name.split("/qiskit_ibm_runtime/")[-1]

try:
source, lineno = inspect.getsourcelines(obj)
except (OSError, TypeError):
linespec = ""
else:
ending_lineno = lineno + len(source) - 1
linespec = f"#L{lineno}-L{ending_lineno}"
return f"https://github.com/Qiskit/qiskit-ibm-runtime/tree/{GITHUB_BRANCH}/qiskit_ibm_runtime/{file_name}{linespec}"
10 changes: 5 additions & 5 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ Next steps
Get started with Estimator <tutorials/how-to-getting-started-with-estimator>
Get started with Sampler <tutorials/how-to-getting-started-with-sampler>
Get started with error suppression and error mitigation <tutorials/Error-Suppression-and-Error-Mitigation>
CHSH with Estimator <tutorials/chsh_with_estimator>
VQE with Estimator <tutorials/vqe_with_estimator>
Grover with Sampler <tutorials/grover_with_sampler>
QAOA with Primitives <tutorials/qaoa_with_primitives>
Submit user-transpiled circuits using primitives <tutorials/user-transpiled-circuits>
CHSH with Estimator <tutorials/chsh_inequality/chsh_with_estimator>
VQE with Estimator <tutorials/variational_quantum_eigensolver/vqe_with_estimator>
Grover with Sampler <tutorials/grovers_algorithm/grover_with_sampler>
QAOA with Primitives <tutorials/quantum_approximate_optimization_algorithm/qaoa_with_primitives>
Submit user-transpiled circuits using primitives <tutorials/submitting_transpiled_circuits/user-transpiled-circuits>
All tutorials <tutorials>


Expand Down
1 change: 1 addition & 0 deletions docs/release_notes.rst
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.. release-notes:: Release Notes
:earliest-version: 0.1.0rc1
10 changes: 5 additions & 5 deletions docs/tutorials.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ Estimator

tutorials/how-to-getting-started-with-estimator
tutorials/Error-Suppression-and-Error-Mitigation
tutorials/chsh_with_estimator
tutorials/vqe_with_estimator
tutorials/chsh_inequality/chsh_with_estimator
tutorials/variational_quantum_eigensolver/vqe_with_estimator

Sampler
=================================

.. nbgallery::

tutorials/how-to-getting-started-with-sampler
tutorials/grover_with_sampler
tutorials/user-transpiled-circuits
tutorials/qaoa_with_primitives
tutorials/grovers_algorithm/grover_with_sampler
tutorials/submitting_transpiled_circuits/user-transpiled-circuits
tutorials/quantum_approximate_optimization_algorithm/qaoa_with_primitives


.. Hiding - Indices and tables
Expand Down
Loading