Skip to content

Commit

Permalink
Merge branch 'main' into layer-fidelity
Browse files Browse the repository at this point in the history
  • Loading branch information
itoko authored Apr 30, 2024
2 parents ec3f838 + 19dd706 commit adbc6b4
Show file tree
Hide file tree
Showing 124 changed files with 2,661 additions and 2,134 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cron-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
python-version: [3.8, "3.12"]
os: ["ubuntu-latest", "macOS-latest", "windows-latest"]
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
steps:
- name: Print Concurrency Group
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
python-version: [3.8, "3.12"]
os: ["ubuntu-latest", "macOS-latest", "windows-latest"]
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
steps:
- name: Print Concurrency Group
env:
Expand Down
1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@
"qiskit_aer": ("https://qiskit.github.io/qiskit-aer/", None),
"qiskit_dynamics": ("https://qiskit-extensions.github.io/qiskit-dynamics/", None),
"qiskit_ibm_runtime": ("https://docs.quantum.ibm.com/api/qiskit-ibm-runtime/", None),
"qiskit_ibm_provider": ("https://docs.quantum.ibm.com/api/qiskit-ibm-provider/", None),
}


Expand Down
2 changes: 1 addition & 1 deletion docs/howtos/cloud_service.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Saving

.. note::
This guide requires :external+qiskit_ibm_runtime:doc:`qiskit-ibm-runtime <index>` version 0.15 and up, which can be installed with ``python -m pip install qiskit-ibm-runtime``.
For how to migrate from the older :external+qiskit_ibm_provider:doc:`qiskit-ibm-provider <index>` to :external+qiskit_ibm_runtime:doc:`qiskit-ibm-runtime <index>`,
For how to migrate from the older ``qiskit-ibm-provider`` to :external+qiskit_ibm_runtime:doc:`qiskit-ibm-runtime <index>`,
consult the `migration guide <https://docs.quantum.ibm.com/api/migration-guides/qiskit-runtime-from-provider>`_.\

You must run the experiment on a real IBM
Expand Down
14 changes: 7 additions & 7 deletions docs/howtos/rerun_analysis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Solution

.. note::
This guide requires :external+qiskit_ibm_runtime:doc:`qiskit-ibm-runtime <index>` version 0.15 and up, which can be installed with ``python -m pip install qiskit-ibm-runtime``.
For how to migrate from the older :external+qiskit_ibm_provider:doc:`qiskit-ibm-provider <index>` to :external+qiskit_ibm_runtime:doc:`qiskit-ibm-runtime <index>`,
For how to migrate from the older ``qiskit-ibm-provider`` to :external+qiskit_ibm_runtime:doc:`qiskit-ibm-runtime <index>`,
consult the `migration guide <https://docs.quantum.ibm.com/api/migration-guides/qiskit-runtime-from-provider>`_.\

Once you recreate the exact experiment you ran and all of its parameters and options,
Expand All @@ -25,18 +25,18 @@ job IDs:
.. jupyter-input::

from qiskit_experiments.framework import ExperimentData
from qiskit_ibm_provider import IBMProvider
from qiskit_ibm_runtime import QiskitRuntimeService

# The experiment you ran
experiment = Experiment(**opts)
# List of job IDs for the experiment
job_ids= [job1, job2, ...]
job_ids= ["job1_id", "job2_id", ...]

provider = IBMProvider()
service = QiskitRuntimeService(channel="ibm_quantum")

expdata = ExperimentData(experiment = experiment)
expdata.add_jobs([provider.retrieve_job(job_id) for job_id in job_ids])
expdata.add_jobs([service.job(job_id) for job_id in job_ids])
experiment.analysis.run(expdata, replace_results=True)

# Block execution of subsequent code until analysis is complete
Expand All @@ -51,7 +51,7 @@ invoke the :meth:`.ExperimentData.add_data` method instead of :meth:`.Experiment

.. jupyter-input::

data.add_data([provider.retrieve_job(job_id).result() for job_id in job_ids])
data.add_data([service.job(job_id).result() for job_id in job_ids])

The remaining workflow remains the same.

Expand Down Expand Up @@ -116,7 +116,7 @@ first component experiment.
)

data = ExperimentData(experiment=pexp)
data.add_jobs([provider.retrieve_job(job_id) for job_id in job_ids])
data.add_jobs([service.job(job_id) for job_id in job_ids])
pexp.analysis.run(data, replace_results=True)

See Also
Expand Down
2 changes: 1 addition & 1 deletion docs/howtos/runtime_sessions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Solution

.. note::
This guide requires :external+qiskit_ibm_runtime:doc:`qiskit-ibm-runtime <index>` version 0.15 and up, which can be installed with ``python -m pip install qiskit-ibm-runtime``.
For how to migrate from the older :external+qiskit_ibm_provider:doc:`qiskit-ibm-provider <index>` to :external+qiskit_ibm_runtime:doc:`qiskit-ibm-runtime <index>`,
For how to migrate from the older ``qiskit-ibm-provider`` to :external+qiskit_ibm_runtime:doc:`qiskit-ibm-runtime <index>`,
consult the `migration guide <https://docs.quantum.ibm.com/api/migration-guides/qiskit-runtime-from-provider>`_.\

Use the :class:`~qiskit_ibm_runtime.IBMBackend` object in :external+qiskit_ibm_runtime:doc:`index`, which supports sessions.
Expand Down
2 changes: 1 addition & 1 deletion docs/manuals/measurement/restless_measurements.rst
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ using the code below.
tau = sum(durations) * dt / (len(durations))

n_circs = len(cal_drag.circuits())
# can be obtained from backend.default_rep_delay on a backend from qiskit-ibm-provider
# can be obtained from backend.default_rep_delay on a backend from qiskit-ibm-runtime

delay_s = 0.0025
delay_r = 1e-6 # restless delay
Expand Down
2 changes: 2 additions & 0 deletions docs/manuals/verification/randomized_benchmarking.rst
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ The EPGs of two-qubit RB are analyzed with the corrected EPC if available.

Note that ``EPC_corrected`` value is smaller than one of raw ``EPC``, which indicates
contribution of depolarization from single-qubit error channels.
If you don't need ``EPG`` value, you can skip its computation by
``exp_2q.analysis.set_options(gate_error_ratio=False)``.


Displaying the RB circuits
Expand Down
Loading

0 comments on commit adbc6b4

Please sign in to comment.