Skip to content

Commit

Permalink
Merge main into feature/rb_speedup (#923)
Browse files Browse the repository at this point in the history
* Backend timing helper for experiments (#860)

Added `BackendTiming` class with methods for helping round delay and pulse durations to match backend timing constraints.

Co-authored-by: Naoki Kanazawa <[email protected]>

* Update test imports for qiskit-aer 0.11 (#913)

Update test imports for qiskit-aer 0.11

See Qiskit/qiskit-aer#1526

Co-authored-by: Will Shanks <[email protected]>
Co-authored-by: Naoki Kanazawa <[email protected]>
  • Loading branch information
3 people authored Sep 29, 2022
1 parent 0b15ccb commit 55604f7
Show file tree
Hide file tree
Showing 22 changed files with 613 additions and 32 deletions.
2 changes: 1 addition & 1 deletion docs/tutorials/quantum_volume.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ z_value = 2), and at least 100 trials have been ran.
from qiskit_experiments.framework import BatchExperiment
from qiskit_experiments.library import QuantumVolume
from qiskit import Aer
from qiskit.providers.aer import AerSimulator
from qiskit_aer import AerSimulator

# For simulation
from qiskit.providers.fake_provider import FakeSydney
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/randomized_benchmarking.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ for an explanation on the RB method, which is based on Ref. [1, 2].
import qiskit.circuit.library as circuits

# For simulation
from qiskit.providers.aer import AerSimulator
from qiskit_aer import AerSimulator
from qiskit.providers.fake_provider import FakeParis

backend = AerSimulator.from_backend(FakeParis())
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/readout_mitigation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ experiments to generate the corresponding mitigators.
from qiskit.visualization import plot_histogram
from qiskit_experiments.library import LocalReadoutError, CorrelatedReadoutError
# For simulation
from qiskit.providers.aer import AerSimulator
from qiskit_aer import AerSimulator
from qiskit.providers.fake_provider import FakeParis

from qiskit.result.mitigation.utils import (
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/state_tomography.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Quantum State Tomography
from qiskit_experiments.library import StateTomography

# For simulation
from qiskit.providers.aer import AerSimulator
from qiskit_aer import AerSimulator
from qiskit.providers.fake_provider import FakeParis

# Noisy simulator backend
Expand Down
6 changes: 3 additions & 3 deletions docs/tutorials/t1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ for qubit 0.

# A T1 simulator
from qiskit.providers.fake_provider import FakeVigo
from qiskit.providers.aer import AerSimulator
from qiskit.providers.aer.noise import NoiseModel
from qiskit_aer import AerSimulator
from qiskit_aer.noise import NoiseModel

# A kerneled data simulator
from qiskit_experiments.test.mock_iq_backend import MockIQBackend
Expand Down Expand Up @@ -167,4 +167,4 @@ that is close to a logical value '0'.
.. jupyter-execute::

import qiskit.tools.jupyter
%qiskit_copyright
%qiskit_copyright
4 changes: 2 additions & 2 deletions docs/tutorials/t2ramsey_characterization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ pure T1/T2 relaxation noise model.

# A T1 simulator
from qiskit.providers.fake_provider import FakeVigo
from qiskit.providers.aer import AerSimulator
from qiskit.providers.aer.noise import NoiseModel
from qiskit_aer import AerSimulator
from qiskit_aer.noise import NoiseModel

# Create a pure relaxation noise model for AerSimulator
noise_model = NoiseModel.from_backend(
Expand Down
4 changes: 2 additions & 2 deletions docs/tutorials/tphi_characterization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ we compute the results for :math:`T_\varphi.`

# An Aer simulator
from qiskit.providers.fake_provider import FakeVigo
from qiskit.providers.aer import AerSimulator
from qiskit.providers.aer.noise import NoiseModel
from qiskit_aer import AerSimulator
from qiskit_aer.noise import NoiseModel

# Create a pure relaxation noise model for AerSimulator
noise_model = NoiseModel.from_backend(
Expand Down
6 changes: 4 additions & 2 deletions qiskit_experiments/framework/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@
AnalysisConfig
ExperimentEncoder
ExperimentDecoder
BackendData
FigureData
.. _composite-experiment:
Expand All @@ -242,12 +241,14 @@
BaseExperiment
BaseAnalysis
Mix-ins
Experiment Configuration Helper Classes
*******
.. autosummary::
:toctree: ../stubs/
BackendData
BackendTiming
RestlessMixin
.. _create-experiment:
Expand All @@ -262,6 +263,7 @@
)
from .base_analysis import BaseAnalysis
from .base_experiment import BaseExperiment
from .backend_timing import BackendTiming
from .configs import ExperimentConfig, AnalysisConfig
from .analysis_result_data import AnalysisResultData
from .experiment_data import ExperimentData
Expand Down
Loading

0 comments on commit 55604f7

Please sign in to comment.