Spectroscopic and Analog Measurements of Qubits

The protocols in the module qubit_spectroscopy are closer to analog protocols than gate based QCVV protocols.

General Functions

acquire_qubit_spectroscopy_data(qc, …) A standard data acquisition method for all experiments in this module.
get_stats_by_qubit(expt_results) Organize the mean and std_err of a single-observable experiment by qubit.
do_t1_or_t2(qc, qubits, times, kind, …) A wrapper around experiment generation, data acquisition, and estimation that runs a t1, t2 echo, or t2* experiment on each qubit in qubits and returns the rb_decay along with the experiments and results.

T1

generate_t1_experiments(qubits, times) Return a ObservablesExperiment containing programs which constitute a t1 experiment to measure the decay time from the excited state to ground state for each qubit in qubits.
fit_t1_results(times, z_expectations, …) Wrapper for fitting the results of a T1 experiment for a single qubit; simply extracts key parameters and passes on to the standard fit.

T2

generate_t2_star_experiments(qubits, times, …) Return ObservablesExperiments containing programs which constitute a T2 star experiment to measure the T2 star coherence decay time for each qubit in qubits.
generate_t2_echo_experiments(qubits, times, …) Return ObservablesExperiments containing programs which constitute a T2 echo experiment to measure the T2 echo coherence decay time.
fit_t2_results(times, y_expectations, …) Wrapper for fitting the results of a ObservablesExperiment; simply extracts key parameters and passes on to the standard fit.

Rabi

generate_rabi_experiments(qubits, angles) Return ObservablesExperiments containing programs which constitute a Rabi experiment.
fit_rabi_results(angles, z_expectations, …) Wrapper for fitting the results of a rabi experiment on a qubit; simply extracts key parameters and passes on to the standard fit.

CZ phase Ramsey

generate_cz_phase_ramsey_experiments(…) Return ObservablesExperiments containing programs that constitute a CZ phase ramsey experiment.
fit_cz_phase_ramsey_results(angles, …) Wrapper for fitting the results of a ObservablesExperiment; simply extracts key parameters and passes on to the standard fit.