qilisdk.experiments.experiment_functional

Attributes

TResult_co

Classes

ExperimentFunctional

Abstract base class for single-qubit experiment functionals.

RabiExperiment

Rabi experiment functional for a single qubit.

T1Experiment

T1 relaxation experiment functional for a single qubit.

T2Experiment

T2 dephasing experiment functional for a single qubit.

TwoTonesExperiment

Two-tone spectroscopy functional for a single qubit.

Module Contents

TResult_co[font]
class ExperimentFunctional(qubit: int)[font]

Bases: qilisdk.functionals.functional.Functional, abc.ABC, Generic[TResult_co]

Abstract base class for single-qubit experiment functionals.

This class serves as a generic interface for defining quantum characterization experiments such as Rabi or T1. Each subclass specifies a concrete ExperimentResult type and the corresponding sweep parameters.

Initialize the experiment functional.

Paràmetres:

qubit (int) – The physical qubit index on which the experiment is performed.

property qubit: int[font]

The physical qubit index on which the experiment is performed.

Retorna:

Index of the qubit.

Tipus de retorn:

int

class RabiExperiment(qubit: int, drive_duration_values: numpy.ndarray)[font]

Bases: ExperimentFunctional[qilisdk.experiments.experiment_result.RabiExperimentResult]

Rabi experiment functional for a single qubit.

This functional defines a standard Rabi oscillation experiment where the drive pulse duration is swept to measure the oscillatory response of the qubit under continuous driving.

Initialize a Rabi experiment functional.

Paràmetres:
  • qubit (int) – The physical qubit index on which the experiment is performed.

  • drive_duration_values (np.ndarray) – Array of drive pulse durations (in nanoseconds) used to sweep the experiment.

result_type: ClassVar[type[qilisdk.experiments.experiment_result.RabiExperimentResult]][font]

Result type returned by this functional.

property drive_duration_values: numpy.ndarray[font]

Drive pulse duration sweep values.

Retorna:

The set of drive durations (in nanoseconds) used in the Rabi experiment.

Tipus de retorn:

np.ndarray

class T1Experiment(qubit: int, wait_duration_values: numpy.ndarray)[font]

Bases: ExperimentFunctional[qilisdk.experiments.experiment_result.T1ExperimentResult]

T1 relaxation experiment functional for a single qubit.

This functional defines a standard T1 (energy relaxation) experiment, where the delay between excitation and measurement is varied to extract the relaxation time constant of the qubit.

Initialize a T1 experiment functional.

Paràmetres:
  • qubit (int) – The physical qubit index on which the experiment is performed.

  • wait_duration_values (np.ndarray) – Array of waiting times (in nanoseconds) between excitation and measurement.

result_type: ClassVar[type[qilisdk.experiments.experiment_result.T1ExperimentResult]][font]

Result type returned by this functional.

property wait_duration_values: numpy.ndarray[font]

Waiting time sweep values.

Retorna:

The set of delay durations (in nanoseconds) used in the T1 experiment.

Tipus de retorn:

np.ndarray

class T2Experiment(qubit: int, wait_duration_values: numpy.ndarray)[font]

Bases: ExperimentFunctional[qilisdk.experiments.experiment_result.T2ExperimentResult]

T2 dephasing experiment functional for a single qubit.

This functional defines a Ramsey/spin-echo style T2 experiment, where the free-evolution delay between phase-sensitive pulses is swept to extract the qubit coherence time.

Initialize a T2 dephasing experiment functional.

Paràmetres:
  • qubit (int) – The physical qubit index on which the experiment is performed.

  • wait_duration_values (np.ndarray) – Array of free-evolution delays (in nanoseconds) between the phase-sensitive pulses.

result_type: ClassVar[type[qilisdk.experiments.experiment_result.T2ExperimentResult]][font]

Result type returned by this functional.

property wait_duration_values: numpy.ndarray[font]

Free-evolution delay sweep values.

Retorna:

The set of delay durations (in nanoseconds) used to estimate T2.

Tipus de retorn:

np.ndarray

class TwoTonesExperiment(qubit: int, frequency_start: float, frequency_stop: float, frequency_step: float)[font]

Bases: ExperimentFunctional[qilisdk.experiments.experiment_result.TwoTonesExperimentResult]

Two-tone spectroscopy functional for a single qubit.

Sweeps a drive tone frequency while monitoring the readout tone to identify the qubit transition frequency.

Initialize a two-tone spectroscopy functional.

Paràmetres:
  • qubit (int) – The physical qubit index on which the experiment is performed.

  • frequency_start (float) – Starting frequency of the swept drive tone (in Hz).

  • frequency_stop (float) – Ending frequency of the swept drive tone (in Hz).

  • frequency_step (float) – Frequency increment between sweep points (in Hz).

result_type: ClassVar[type[qilisdk.experiments.experiment_result.TwoTonesExperimentResult]][font]

Result type returned by this functional.

property frequency_start: float[font]

Start frequency for the drive tone sweep.

Retorna:

Starting frequency of the drive tone (in Hz).

Tipus de retorn:

float

property frequency_stop: float[font]

Stop frequency for the drive tone sweep.

Retorna:

Ending frequency of the drive tone (in Hz).

Tipus de retorn:

float

property frequency_step: float[font]

Step size for the drive tone sweep.

Retorna:

Frequency increment between sweep points (in Hz).

Tipus de retorn:

float