Skip to content

Commit

Permalink
Rework
Browse files Browse the repository at this point in the history
- reorganize; move all experiments and analyses to own library.driven_freq_tuning
- add util; define StarkCoefficients dataclasses and util functions
- separation; delegated the role of coefficient manipulation from the analysis class to util functions
  • Loading branch information
nkanazawa1989 committed Jan 17, 2024
1 parent 6bc9ee9 commit 092a874
Show file tree
Hide file tree
Showing 20 changed files with 2,136 additions and 1,870 deletions.
1 change: 1 addition & 0 deletions docs/apidocs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Experiment Modules

mod_calibration
mod_characterization
mod_driven_freq_tuning
mod_randomized_benchmarking
mod_tomography
mod_quantum_volume
6 changes: 6 additions & 0 deletions docs/apidocs/mod_driven_freq_tuning.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. _qiskit-experiments-driven-freq-tuning:

.. automodule:: qiskit_experiments.library.driven_freq_tuning
:no-members:
:no-inherited-members:
:no-special-members:
1 change: 1 addition & 0 deletions qiskit_experiments/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
- :mod:`qiskit_experiments.library.calibration`
- :mod:`qiskit_experiments.library.characterization`
- :mod:`qiskit_experiments.library.driven_freq_tuning`
- :mod:`qiskit_experiments.library.randomized_benchmarking`
- :mod:`qiskit_experiments.library.tomography`
"""
Expand Down
13 changes: 8 additions & 5 deletions qiskit_experiments/library/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@
~characterization.FineXDrag
~characterization.FineSXDrag
~characterization.MultiStateDiscrimination
~characterization.StarkRamseyXY
~characterization.StarkRamseyXYAmpScan
~driven_freq_tuning.StarkRamseyXY
~driven_freq_tuning.StarkRamseyXYAmpScan
~driven_freq_tuning.StarkP1Spectroscopy
.. _characterization two qubits:
Expand Down Expand Up @@ -160,7 +161,6 @@ class instance to manage parameters and pulse schedules.
)
from .characterization import (
T1,
StarkP1Spectroscopy,
T2Hahn,
T2Ramsey,
Tphi,
Expand All @@ -187,8 +187,6 @@ class instance to manage parameters and pulse schedules.
CorrelatedReadoutError,
ZZRamsey,
MultiStateDiscrimination,
StarkRamseyXY,
StarkRamseyXYAmpScan,
)
from .randomized_benchmarking import StandardRB, InterleavedRB
from .tomography import (
Expand All @@ -199,6 +197,11 @@ class instance to manage parameters and pulse schedules.
MitigatedProcessTomography,
)
from .quantum_volume import QuantumVolume
from .driven_freq_tuning import (
StarkRamseyXY,
StarkRamseyXYAmpScan,
StarkP1Spectroscopy,
)

# Experiment Sub-modules
from . import calibration
Expand Down
11 changes: 2 additions & 9 deletions qiskit_experiments/library/characterization/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
:template: autosummary/experiment.rst
T1
StarkP1Spectroscopy
T2Ramsey
T2Hahn
Tphi
Expand All @@ -50,8 +49,6 @@
ResonatorSpectroscopy
MultiStateDiscrimination
ZZRamsey
StarkRamseyXY
StarkRamseyXYAmpScan
Analysis
Expand All @@ -63,15 +60,13 @@
T1Analysis
T1KerneledAnalysis
StarkP1SpectAnalysis
T2RamseyAnalysis
T2HahnAnalysis
TphiAnalysis
CrossResonanceHamiltonianAnalysis
DragCalAnalysis
FineAmplitudeAnalysis
RamseyXYAnalysis
StarkRamseyXYAmpScanAnalysis
ReadoutAngleAnalysis
ResonatorSpectroscopyAnalysis
LocalReadoutErrorAnalysis
Expand All @@ -85,8 +80,6 @@
DragCalAnalysis,
FineAmplitudeAnalysis,
RamseyXYAnalysis,
StarkRamseyXYAmpScanAnalysis,
StarkP1SpectAnalysis,
T2RamseyAnalysis,
T1Analysis,
T1KerneledAnalysis,
Expand All @@ -101,7 +94,7 @@
MultiStateDiscriminationAnalysis,
)

from .t1 import T1, StarkP1Spectroscopy
from .t1 import T1
from .qubit_spectroscopy import QubitSpectroscopy
from .ef_spectroscopy import EFSpectroscopy
from .t2ramsey import T2Ramsey
Expand All @@ -111,7 +104,7 @@
from .rabi import Rabi, EFRabi
from .half_angle import HalfAngle
from .fine_amplitude import FineAmplitude, FineXAmplitude, FineSXAmplitude, FineZXAmplitude
from .ramsey_xy import RamseyXY, StarkRamseyXY, StarkRamseyXYAmpScan
from .ramsey_xy import RamseyXY
from .fine_frequency import FineFrequency
from .drag import RoughDrag
from .readout_angle import ReadoutAngle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@

from .drag_analysis import DragCalAnalysis
from .fine_amplitude_analysis import FineAmplitudeAnalysis
from .ramsey_xy_analysis import RamseyXYAnalysis, StarkRamseyXYAmpScanAnalysis
from .ramsey_xy_analysis import RamseyXYAnalysis
from .t2ramsey_analysis import T2RamseyAnalysis
from .t2hahn_analysis import T2HahnAnalysis
from .t1_analysis import T1Analysis, T1KerneledAnalysis, StarkP1SpectAnalysis
from .t1_analysis import T1Analysis, T1KerneledAnalysis
from .tphi_analysis import TphiAnalysis
from .cr_hamiltonian_analysis import CrossResonanceHamiltonianAnalysis
from .readout_angle_analysis import ReadoutAngleAnalysis
Expand Down
Loading

0 comments on commit 092a874

Please sign in to comment.