Skip to content

Commit

Permalink
RamseyXY update (Qiskit-Extensions#1238)
Browse files Browse the repository at this point in the history
  • Loading branch information
Naohnakazawa committed Feb 10, 2024
1 parent cd304c1 commit 3767d7d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions qiskit_experiments/library/characterization/ramsey_xy.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,30 @@ class RamseyXY(BaseExperiment, RestlessMixin):
# section: analysis_ref
:class:`RamseyXYAnalysis`
# section: example
.. jupyter-execute::
:hide-code:
# backend
from qiskit_aer import AerSimulator
from qiskit.providers.fake_provider import FakePerth
backend = AerSimulator.from_backend(FakePerth())
.. jupyter-execute::
import numpy as np
from qiskit_experiments.library.characterization import RamseyXY
qubit=0
delays = np.linspace(0, 10.e-7, 101)
exp = RamseyXY([qubit], backend=backend, delays=delays, osc_freq=2.0e6)
exp.set_run_options(shots=1000, seed_simulator=201)
exp_data = exp.run().block_for_results()
result=exp_data.analysis_results()
exp_data.figure(0)
"""

@classmethod
Expand Down

0 comments on commit 3767d7d

Please sign in to comment.