qibocal package#
qibocal: Quantum Calibration Verification and Validation using Qibo.
- class qibocal.Executor(history: History, targets: Union[list[Union[str, int]], list[Tuple[Union[str, int], Union[str, int]]], list[tuple[Union[str, int], ...]]], platform: Platform, update: bool = True, name: Optional[str] = None, path: Optional[Path] = None, meta: Optional[Metadata] = None)[source]#
Bases:
object
Execute a tasks’ graph and tracks its history.
- targets: Union[list[Union[str, int]], list[Tuple[Union[str, int], Union[str, int]]], list[tuple[Union[str, int], ...]]]#
Qubits/Qubit Pairs to be calibrated.
- platform: Platform#
Qubits’ platform.
- name: Optional[str] = None#
Symbol for the executor.
This can be used generically to distinguish the executor, but its specific use is to register a module with this name in sys.modules. They can contain dots, ., that are interpreted as usual by the Python module system.
Note
As a special case, mainly used for internal purposes, names starting with . are also allowed, and they are interpreted relative to this package (in the top scope).
- classmethod create(name: str, platform: Optional[Union[Platform, str]] = None)[source]#
Load list of protocols.
- run_protocol(protocol: ~qibocal.auto.operation.Routine, parameters: ~qibocal.auto.task.Action, mode: ~qibocal.auto.mode.ExecutionMode = ExecutionMode.None) Completed [source]#
Run single protocol in ExecutionMode mode.
- _wrapped_protocol(protocol: Routine, operation: str)[source]#
Create a bound protocol.
Returns a closure, already wrapping the current Executor instance, but specific to the protocol chosen. The parameters of this wrapper function maps to protocol’s ones, in particular:
the keyword argument mode is used as the execution mode (defaults to AUTOCALIBRATION)
the keyword argument id is used as the id for the given operation (defaults to protocol identifier, the same used to import and invoke it)
then the protocol specific are resolved, with the following priority:
explicit keyword arguments have the highest priorities
items in the dictionary passed with the keyword parameters
positional arguments, which are associated to protocols parameters in the same order in which they are defined (and documented) in their respective parameters classes
Attention
Despite the priority being clear, it is advised to use only one of the former schemes to pass parameters, to avoid confusion due to unexpected overwritten arguments.
E.g. for:
resonator_spectroscopy(1e7, 1e5, freq_width=1e8)
the freq_width will be 1e8, and 1e7 will be silently overwritten and ignored (as opposed to a regular Python function, where a TypeError would be raised).
The priority defined above is strictly and silently respected, so just pay attention during invocations.
- init(path: PathLike, force: bool = False, platform: Optional[Union[Platform, str]] = None, update: Optional[bool] = None, targets: Optional[Union[list[Union[str, int]], list[Tuple[Union[str, int], Union[str, int]]], list[tuple[Union[str, int], ...]]]] = None)[source]#
Initialize execution.
- classmethod open(name: str, path: PathLike, force: bool = False, platform: Optional[Union[Platform, str]] = None, update: Optional[bool] = None, targets: Optional[Union[list[Union[str, int]], list[Tuple[Union[str, int], Union[str, int]]], list[tuple[Union[str, int], ...]]]] = None)[source]#
Enter the execution context.
Subpackages#
- qibocal.auto package
- Submodules
- qibocal.auto.execute module
- qibocal.auto.history module
- qibocal.auto.mode module
- qibocal.auto.operation module
- qibocal.auto.output module
- qibocal.auto.runcard module
- qibocal.auto.serialize module
- qibocal.auto.status module
- qibocal.auto.task module
- qibocal.auto.transpile module
- qibocal.cli package
- qibocal.protocols package
- Subpackages
- qibocal.protocols.allxy package
- qibocal.protocols.coherence package
- Submodules
- qibocal.protocols.coherence.spin_echo module
- qibocal.protocols.coherence.spin_echo_signal module
- qibocal.protocols.coherence.t1 module
- qibocal.protocols.coherence.t1_sequences module
- qibocal.protocols.coherence.t1_signal module
- qibocal.protocols.coherence.t2 module
- qibocal.protocols.coherence.t2_sequences module
- qibocal.protocols.coherence.t2_signal module
- qibocal.protocols.coherence.utils module
- qibocal.protocols.coherence.zeno module
- qibocal.protocols.coherence.zeno_signal module
- qibocal.protocols.couplers package
- qibocal.protocols.flux_dependence package
- Submodules
- qibocal.protocols.flux_dependence.avoided_crossing module
- qibocal.protocols.flux_dependence.qubit_crosstalk module
- qibocal.protocols.flux_dependence.qubit_flux_dependence module
- qibocal.protocols.flux_dependence.qubit_flux_tracking module
- qibocal.protocols.flux_dependence.resonator_crosstalk module
- qibocal.protocols.flux_dependence.resonator_flux_dependence module
- qibocal.protocols.flux_dependence.utils module
- qibocal.protocols.rabi package
- Submodules
- qibocal.protocols.rabi.amplitude module
- qibocal.protocols.rabi.amplitude_frequency module
- qibocal.protocols.rabi.amplitude_frequency_signal module
- qibocal.protocols.rabi.amplitude_signal module
- qibocal.protocols.rabi.ef module
- qibocal.protocols.rabi.length module
- qibocal.protocols.rabi.length_frequency module
- qibocal.protocols.rabi.length_frequency_signal module
- qibocal.protocols.rabi.length_sequences module
- qibocal.protocols.rabi.length_signal module
- qibocal.protocols.rabi.utils module
- qibocal.protocols.ramsey package
- qibocal.protocols.randomized_benchmarking package
- Submodules
- qibocal.protocols.randomized_benchmarking.dict_utils module
- qibocal.protocols.randomized_benchmarking.filtered_rb module
- qibocal.protocols.randomized_benchmarking.fitting module
- qibocal.protocols.randomized_benchmarking.noisemodels module
- qibocal.protocols.randomized_benchmarking.standard_rb module
- qibocal.protocols.randomized_benchmarking.standard_rb_2q module
- qibocal.protocols.randomized_benchmarking.standard_rb_2q_inter module
- qibocal.protocols.randomized_benchmarking.utils module
- qibocal.protocols.two_qubit_interaction package
- Submodules
- qibocal.protocols.classification module
SingleShotClassificationParameters
ClassificationType
SingleShotClassificationData
SingleShotClassificationData.nshots
SingleShotClassificationData.savedir
SingleShotClassificationData.qubit_frequencies
SingleShotClassificationData.data
SingleShotClassificationData.classifiers_list
SingleShotClassificationData._to_json()
SingleShotClassificationData._to_npz()
SingleShotClassificationData.load_data()
SingleShotClassificationData.load_params()
SingleShotClassificationData.pairs
SingleShotClassificationData.params
SingleShotClassificationData.qubits
SingleShotClassificationData.register_qubit()
SingleShotClassificationData.save()
SingleShotClassificationResults
SingleShotClassificationResults.names
SingleShotClassificationResults.savedir
SingleShotClassificationResults.y_preds
SingleShotClassificationResults.grid_preds
SingleShotClassificationResults.threshold
SingleShotClassificationResults.rotation_angle
SingleShotClassificationResults.mean_gnd_states
SingleShotClassificationResults._to_json()
SingleShotClassificationResults._to_npz()
SingleShotClassificationResults.load_data()
SingleShotClassificationResults.load_params()
SingleShotClassificationResults.params
SingleShotClassificationResults.mean_exc_states
SingleShotClassificationResults.fidelity
SingleShotClassificationResults.assignment_fidelity
SingleShotClassificationResults.effective_temperature
SingleShotClassificationResults.models
SingleShotClassificationResults.benchmark_table
SingleShotClassificationResults.classifiers_hpars
SingleShotClassificationResults.x_tests
SingleShotClassificationResults.y_tests
SingleShotClassificationResults.save()
_acquisition()
_fit()
_plot()
_update()
single_shot_classification
- qibocal.protocols.dispersive_shift module
DispersiveShiftParameters
DispersiveShiftResults
DispersiveShiftResults.frequencies
DispersiveShiftResults.fitted_parameters
DispersiveShiftResults.best_freq
DispersiveShiftResults.chi()
DispersiveShiftResults._to_json()
DispersiveShiftResults._to_npz()
DispersiveShiftResults.load_data()
DispersiveShiftResults.load_params()
DispersiveShiftResults.params
DispersiveShiftResults.save()
DispersiveShiftType
DispersiveShiftData
DispersiveShiftData._to_json()
DispersiveShiftData._to_npz()
DispersiveShiftData.load_data()
DispersiveShiftData.load_params()
DispersiveShiftData.pairs
DispersiveShiftData.params
DispersiveShiftData.qubits
DispersiveShiftData.register_qubit()
DispersiveShiftData.save()
DispersiveShiftData.resonator_type
DispersiveShiftData.data
_acquisition()
_fit()
_plot()
_update()
dispersive_shift
- qibocal.protocols.dispersive_shift_qutrit module
DispersiveShiftQutritParameters
DispersiveShiftQutritResults
DispersiveShiftQutritResults.frequency_state_zero
DispersiveShiftQutritResults.frequency_state_one
DispersiveShiftQutritResults.frequency_state_two
DispersiveShiftQutritResults.fitted_parameters_state_zero
DispersiveShiftQutritResults.fitted_parameters_state_one
DispersiveShiftQutritResults.fitted_parameters_state_two
DispersiveShiftQutritResults.state_zero
DispersiveShiftQutritResults.state_one
DispersiveShiftQutritResults._to_json()
DispersiveShiftQutritResults._to_npz()
DispersiveShiftQutritResults.load_data()
DispersiveShiftQutritResults.load_params()
DispersiveShiftQutritResults.params
DispersiveShiftQutritResults.save()
DispersiveShiftQutritResults.state_two
DispersiveShiftQutritData
DispersiveShiftQutritData._to_json()
DispersiveShiftQutritData._to_npz()
DispersiveShiftQutritData.load_data()
DispersiveShiftQutritData.load_params()
DispersiveShiftQutritData.pairs
DispersiveShiftQutritData.params
DispersiveShiftQutritData.qubits
DispersiveShiftQutritData.register_qubit()
DispersiveShiftQutritData.save()
DispersiveShiftQutritData.resonator_type
DispersiveShiftQutritData.data
_acquisition()
_fit()
_plot()
- qibocal.protocols.drag module
- qibocal.protocols.flipping module
FlippingParameters
FlippingResults
FlippingResults.chi2
FlippingResults._to_json()
FlippingResults._to_npz()
FlippingResults.load_data()
FlippingResults.load_params()
FlippingResults.params
FlippingResults.save()
FlippingResults.amplitude
FlippingResults.delta_amplitude
FlippingResults.delta_amplitude_detuned
FlippingResults.fitted_parameters
FlippingData
FlippingData.data
FlippingData._to_json()
FlippingData._to_npz()
FlippingData.load_data()
FlippingData.load_params()
FlippingData.pairs
FlippingData.params
FlippingData.qubits
FlippingData.register_qubit()
FlippingData.save()
FlippingData.resonator_type
FlippingData.delta_amplitude
FlippingData.pi_pulse_amplitudes
_acquisition()
_fit()
_plot()
flipping
- qibocal.protocols.flipping_signal module
FlippingSignalParameters
FlippingSignalResults
FlippingSignalResults.amplitude
FlippingSignalResults.delta_amplitude
FlippingSignalResults.delta_amplitude_detuned
FlippingSignalResults.fitted_parameters
FlippingSignalResults._to_json()
FlippingSignalResults._to_npz()
FlippingSignalResults.load_data()
FlippingSignalResults.load_params()
FlippingSignalResults.params
FlippingSignalResults.save()
FlippingSignalData
FlippingSignalData.resonator_type
FlippingSignalData._to_json()
FlippingSignalData._to_npz()
FlippingSignalData.load_data()
FlippingSignalData.load_params()
FlippingSignalData.pairs
FlippingSignalData.params
FlippingSignalData.qubits
FlippingSignalData.register_qubit()
FlippingSignalData.save()
FlippingSignalData.delta_amplitude
FlippingSignalData.pi_pulse_amplitudes
FlippingSignalData.data
flipping_sequence()
_acquisition()
flipping_fit()
_fit()
_plot()
_update()
flipping_signal
- qibocal.protocols.qubit_power_spectroscopy module
QubitPowerSpectroscopyParameters
QubitPowerSpectroscopyParameters.freq_width
QubitPowerSpectroscopyParameters.freq_step
QubitPowerSpectroscopyParameters.min_amp_factor
QubitPowerSpectroscopyParameters.max_amp_factor
QubitPowerSpectroscopyParameters.step_amp_factor
QubitPowerSpectroscopyParameters.duration
QubitPowerSpectroscopyParameters.hardware_average
QubitPowerSpectroscopyParameters.nshots
QubitPowerSpectroscopyParameters.relaxation_time
QubitPowerSpectroscopyParameters.amplitude
QubitPowerSpectroscopyData
QubitPowerSpectroscopyData._to_json()
QubitPowerSpectroscopyData._to_npz()
QubitPowerSpectroscopyData.load_data()
QubitPowerSpectroscopyData.load_params()
QubitPowerSpectroscopyData.pairs
QubitPowerSpectroscopyData.params
QubitPowerSpectroscopyData.qubits
QubitPowerSpectroscopyData.register_qubit()
QubitPowerSpectroscopyData.save()
QubitPowerSpectroscopyData.resonator_type
QubitPowerSpectroscopyData.amplitudes
QubitPowerSpectroscopyData.data
_acquisition()
_fit()
_plot()
qubit_power_spectroscopy
- qibocal.protocols.qubit_spectroscopy module
QubitSpectroscopyParameters
QubitSpectroscopyResults
QubitSpectroscopyResults.frequency
QubitSpectroscopyResults.amplitude
QubitSpectroscopyResults.fitted_parameters
QubitSpectroscopyResults._to_json()
QubitSpectroscopyResults._to_npz()
QubitSpectroscopyResults.load_data()
QubitSpectroscopyResults.load_params()
QubitSpectroscopyResults.params
QubitSpectroscopyResults.save()
QubitSpectroscopyResults.chi2_reduced
QubitSpectroscopyResults.error_fit_pars
QubitSpectroscopyData
QubitSpectroscopyData._to_json()
QubitSpectroscopyData._to_npz()
QubitSpectroscopyData.fit_function
QubitSpectroscopyData.load_data()
QubitSpectroscopyData.load_params()
QubitSpectroscopyData.pairs
QubitSpectroscopyData.params
QubitSpectroscopyData.phase_sign
QubitSpectroscopyData.power_level
QubitSpectroscopyData.qubits
QubitSpectroscopyData.register_qubit()
QubitSpectroscopyData.save()
QubitSpectroscopyData.resonator_type
QubitSpectroscopyData.amplitudes
QubitSpectroscopyData.data
QubitSpectroscopyData.attenuations
_acquisition()
_fit()
_plot()
_update()
qubit_spectroscopy
- qibocal.protocols.qubit_spectroscopy_ef module
DEFAULT_ANHARMONICITY
QubitSpectroscopyEFParameters
QubitSpectroscopyEFParameters.drive_amplitude
QubitSpectroscopyEFParameters.hardware_average
QubitSpectroscopyEFParameters.freq_width
QubitSpectroscopyEFParameters.freq_step
QubitSpectroscopyEFParameters.drive_duration
QubitSpectroscopyEFParameters.nshots
QubitSpectroscopyEFParameters.relaxation_time
QubitSpectroscopyEFResults
QubitSpectroscopyEFResults.anharmonicity
QubitSpectroscopyEFResults._to_json()
QubitSpectroscopyEFResults._to_npz()
QubitSpectroscopyEFResults.load_data()
QubitSpectroscopyEFResults.load_params()
QubitSpectroscopyEFResults.params
QubitSpectroscopyEFResults.save()
QubitSpectroscopyEFResults.frequency
QubitSpectroscopyEFResults.amplitude
QubitSpectroscopyEFResults.fitted_parameters
QubitSpectroscopyEFResults.chi2_reduced
QubitSpectroscopyEFResults.error_fit_pars
QubitSpectroscopyEFData
QubitSpectroscopyEFData.drive_frequencies
QubitSpectroscopyEFData._to_json()
QubitSpectroscopyEFData._to_npz()
QubitSpectroscopyEFData.fit_function
QubitSpectroscopyEFData.load_data()
QubitSpectroscopyEFData.load_params()
QubitSpectroscopyEFData.pairs
QubitSpectroscopyEFData.params
QubitSpectroscopyEFData.phase_sign
QubitSpectroscopyEFData.power_level
QubitSpectroscopyEFData.qubits
QubitSpectroscopyEFData.register_qubit()
QubitSpectroscopyEFData.save()
QubitSpectroscopyEFData.resonator_type
QubitSpectroscopyEFData.amplitudes
QubitSpectroscopyEFData.data
QubitSpectroscopyEFData.attenuations
fit_ef()
_acquisition()
_plot()
_update()
qubit_spectroscopy_ef
- qibocal.protocols.qutrit_classification module
QutritClassificationParameters
QutritClassificationData
QutritClassificationData.classifiers_list
QutritClassificationData._to_json()
QutritClassificationData._to_npz()
QutritClassificationData.load_data()
QutritClassificationData.load_params()
QutritClassificationData.pairs
QutritClassificationData.params
QutritClassificationData.qubits
QutritClassificationData.register_qubit()
QutritClassificationData.save()
QutritClassificationData.nshots
QutritClassificationData.savedir
QutritClassificationData.qubit_frequencies
QutritClassificationData.data
QutritClassificationResults
_acquisition()
_fit()
_plot()
qutrit_classification
- qibocal.protocols.readout_characterization module
ReadoutCharacterizationParameters
ReadoutCharacterizationResults
ReadoutCharacterizationResults.fidelity
ReadoutCharacterizationResults.assignment_fidelity
ReadoutCharacterizationResults.qnd
ReadoutCharacterizationResults.effective_temperature
ReadoutCharacterizationResults.Lambda_M
ReadoutCharacterizationResults.Lambda_M2
ReadoutCharacterizationResults._to_json()
ReadoutCharacterizationResults._to_npz()
ReadoutCharacterizationResults.load_data()
ReadoutCharacterizationResults.load_params()
ReadoutCharacterizationResults.params
ReadoutCharacterizationResults.save()
ReadoutCharacterizationType
ReadoutCharacterizationData
ReadoutCharacterizationData._to_json()
ReadoutCharacterizationData._to_npz()
ReadoutCharacterizationData.load_data()
ReadoutCharacterizationData.load_params()
ReadoutCharacterizationData.pairs
ReadoutCharacterizationData.params
ReadoutCharacterizationData.qubits
ReadoutCharacterizationData.register_qubit()
ReadoutCharacterizationData.save()
ReadoutCharacterizationData.qubit_frequencies
ReadoutCharacterizationData.delay
ReadoutCharacterizationData.data
ReadoutCharacterizationData.samples
_acquisition()
_fit()
_plot()
_update()
readout_characterization
- qibocal.protocols.readout_mitigation_matrix module
ReadoutMitigationMatrixParameters
ReadoutMitigationMatrixResults
ReadoutMitigationMatrixResults.readout_mitigation_matrix
ReadoutMitigationMatrixResults._to_json()
ReadoutMitigationMatrixResults._to_npz()
ReadoutMitigationMatrixResults.load_data()
ReadoutMitigationMatrixResults.load_params()
ReadoutMitigationMatrixResults.params
ReadoutMitigationMatrixResults.save()
ReadoutMitigationMatrixData
ReadoutMitigationMatrixData.qubit_list
ReadoutMitigationMatrixData.nshots
ReadoutMitigationMatrixData._to_json()
ReadoutMitigationMatrixData._to_npz()
ReadoutMitigationMatrixData.load_data()
ReadoutMitigationMatrixData.load_params()
ReadoutMitigationMatrixData.pairs
ReadoutMitigationMatrixData.params
ReadoutMitigationMatrixData.qubits
ReadoutMitigationMatrixData.register_qubit()
ReadoutMitigationMatrixData.save()
ReadoutMitigationMatrixData.data
_acquisition()
_fit()
_plot()
readout_mitigation_matrix
- qibocal.protocols.resonator_punchout module
ResonatorPunchoutParameters
ResonatorPunchoutParameters.freq_width
ResonatorPunchoutParameters.freq_step
ResonatorPunchoutParameters.min_amp_factor
ResonatorPunchoutParameters.max_amp_factor
ResonatorPunchoutParameters.step_amp_factor
ResonatorPunchoutParameters.amplitude
ResonatorPunchoutParameters.hardware_average
ResonatorPunchoutParameters.nshots
ResonatorPunchoutParameters.relaxation_time
ResonatorPunchoutResults
ResonatorPunchoutResults.readout_frequency
ResonatorPunchoutResults.bare_frequency
ResonatorPunchoutResults.readout_amplitude
ResonatorPunchoutResults._to_json()
ResonatorPunchoutResults._to_npz()
ResonatorPunchoutResults.load_data()
ResonatorPunchoutResults.load_params()
ResonatorPunchoutResults.params
ResonatorPunchoutResults.save()
ResPunchoutType
ResonatorPunchoutData
ResonatorPunchoutData._to_json()
ResonatorPunchoutData._to_npz()
ResonatorPunchoutData.load_data()
ResonatorPunchoutData.load_params()
ResonatorPunchoutData.pairs
ResonatorPunchoutData.params
ResonatorPunchoutData.qubits
ResonatorPunchoutData.save()
ResonatorPunchoutData.resonator_type
ResonatorPunchoutData.amplitudes
ResonatorPunchoutData.data
ResonatorPunchoutData.register_qubit()
_acquisition()
_fit()
_plot()
_update()
resonator_punchout
- qibocal.protocols.resonator_punchout_attenuation module
ResonatorPunchoutAttenuationParameters
ResonatorPunchoutAttenuationParameters.freq_width
ResonatorPunchoutAttenuationParameters.freq_step
ResonatorPunchoutAttenuationParameters.min_att
ResonatorPunchoutAttenuationParameters.max_att
ResonatorPunchoutAttenuationParameters.step_att
ResonatorPunchoutAttenuationParameters.hardware_average
ResonatorPunchoutAttenuationParameters.nshots
ResonatorPunchoutAttenuationParameters.relaxation_time
ResonatorPunchoutAttenuationResults
ResonatorPunchoutAttenuationResults.readout_frequency
ResonatorPunchoutAttenuationResults.bare_frequency
ResonatorPunchoutAttenuationResults.readout_attenuation
ResonatorPunchoutAttenuationResults._to_json()
ResonatorPunchoutAttenuationResults._to_npz()
ResonatorPunchoutAttenuationResults.load_data()
ResonatorPunchoutAttenuationResults.load_params()
ResonatorPunchoutAttenuationResults.params
ResonatorPunchoutAttenuationResults.save()
ResPunchoutAttType
ResonatorPunchoutAttenuationData
ResonatorPunchoutAttenuationData._to_json()
ResonatorPunchoutAttenuationData._to_npz()
ResonatorPunchoutAttenuationData.load_data()
ResonatorPunchoutAttenuationData.load_params()
ResonatorPunchoutAttenuationData.pairs
ResonatorPunchoutAttenuationData.params
ResonatorPunchoutAttenuationData.qubits
ResonatorPunchoutAttenuationData.save()
ResonatorPunchoutAttenuationData.resonator_type
ResonatorPunchoutAttenuationData.data
ResonatorPunchoutAttenuationData.register_qubit()
_acquisition()
_fit()
_plot()
_update()
resonator_punchout_attenuation
- qibocal.protocols.resonator_spectroscopy module
ResSpecType
ResonatorSpectroscopyFit
FITS
ResonatorSpectroscopyParameters
ResonatorSpectroscopyParameters.freq_width
ResonatorSpectroscopyParameters.freq_step
ResonatorSpectroscopyParameters.power_level
ResonatorSpectroscopyParameters.fit_function
ResonatorSpectroscopyParameters.phase_sign
ResonatorSpectroscopyParameters.amplitude
ResonatorSpectroscopyParameters.attenuation
ResonatorSpectroscopyParameters.hardware_average
ResonatorSpectroscopyParameters.nshots
ResonatorSpectroscopyParameters.relaxation_time
ResonatorSpectroscopyResults
ResonatorSpectroscopyResults.frequency
ResonatorSpectroscopyResults.fitted_parameters
ResonatorSpectroscopyResults.bare_frequency
ResonatorSpectroscopyResults._to_json()
ResonatorSpectroscopyResults._to_npz()
ResonatorSpectroscopyResults.load_data()
ResonatorSpectroscopyResults.load_params()
ResonatorSpectroscopyResults.params
ResonatorSpectroscopyResults.save()
ResonatorSpectroscopyResults.error_fit_pars
ResonatorSpectroscopyResults.chi2_reduced
ResonatorSpectroscopyResults.amplitude
ResonatorSpectroscopyResults.attenuation
ResonatorSpectroscopyData
ResonatorSpectroscopyData._to_json()
ResonatorSpectroscopyData._to_npz()
ResonatorSpectroscopyData.load_data()
ResonatorSpectroscopyData.load_params()
ResonatorSpectroscopyData.pairs
ResonatorSpectroscopyData.params
ResonatorSpectroscopyData.qubits
ResonatorSpectroscopyData.register_qubit()
ResonatorSpectroscopyData.save()
ResonatorSpectroscopyData.resonator_type
ResonatorSpectroscopyData.amplitudes
ResonatorSpectroscopyData.fit_function
ResonatorSpectroscopyData.phase_sign
ResonatorSpectroscopyData.data
ResonatorSpectroscopyData.power_level
ResonatorSpectroscopyData.attenuations
_acquisition()
_fit()
_plot()
_update()
resonator_spectroscopy
- qibocal.protocols.resonator_utils module
- qibocal.protocols.state_tomography module
BASIS
CIRCUIT_PATH
StateTomographyParameters
TomographyType
StateTomographyData
StateTomographyData.targets
StateTomographyData.circuit
StateTomographyData.data
StateTomographyData.params
StateTomographyData.save()
StateTomographyData._to_json()
StateTomographyData._to_npz()
StateTomographyData.load_data()
StateTomographyData.load_params()
StateTomographyData.pairs
StateTomographyData.qubits
StateTomographyData.register_qubit()
StateTomographyResults
StateTomographyResults.measured_density_matrix_real
StateTomographyResults.measured_density_matrix_imag
StateTomographyResults._to_json()
StateTomographyResults._to_npz()
StateTomographyResults.load_data()
StateTomographyResults.load_params()
StateTomographyResults.params
StateTomographyResults.save()
StateTomographyResults.target_density_matrix_real
StateTomographyResults.target_density_matrix_imag
StateTomographyResults.fidelity
_acquisition()
_fit()
plot_parallelogram()
plot_rho()
plot_reconstruction()
_plot()
- qibocal.protocols.two_qubit_state_tomography module
SIMULATED_DENSITY_MATRIX
TomographyType
StateTomographyData
StateTomographyData.data
StateTomographyData.ideal
StateTomographyData.simulated
StateTomographyData.save()
StateTomographyData._to_json()
StateTomographyData._to_npz()
StateTomographyData.load_data()
StateTomographyData.load_params()
StateTomographyData.pairs
StateTomographyData.params
StateTomographyData.qubits
StateTomographyData.register_qubit()
StateTomographyResults
StateTomographyResults.measured_raw_density_matrix_real
StateTomographyResults.measured_raw_density_matrix_imag
StateTomographyResults.measured_density_matrix_real
StateTomographyResults.measured_density_matrix_imag
StateTomographyResults.fidelity
StateTomographyResults._to_json()
StateTomographyResults._to_npz()
StateTomographyResults.load_data()
StateTomographyResults.load_params()
StateTomographyResults.params
StateTomographyResults.save()
_acquisition()
rotation_matrix()
project_psd()
_fit()
plot_measurements()
_plot()
- qibocal.protocols.utils module
HBAR
CONFIDENCE_INTERVAL_FIRST_MASK
CONFIDENCE_INTERVAL_SECOND_MASK
DELAY_FIT_PERCENTAGE
effective_qubit_temperature()
calculate_frequencies()
PowerLevel
lorentzian()
lorentzian_fit()
s21()
s21_fit()
spectroscopy_plot()
s21_spectroscopy_plot()
norm()
cumulative()
fit_punchout()
eval_magnitude()
round_report()
format_error_single_cell()
chi2_reduced()
chi2_reduced_complex()
get_color_state0()
get_color_state1()
significant_digit()
evaluate_grid()
plot_results()
table_dict()
table_html()
extract_feature()
guess_period()
fallback_period()
- Subpackages
- qibocal.web package
Submodules#
qibocal.config module#
Custom logger implemenation.
- qibocal.config.raise_error(exception, message=None, args=None)[source]#
Raise exception with logging error.
- class qibocal.config.CustomHandler[source]#
Bases:
StreamHandler
Custom handler for logging algorithm.
- _at_fork_reinit()#
- acquire()#
Acquire the I/O thread lock.
- addFilter(filter)#
Add the specified filter to this handler.
- close()#
Tidy up any resources used by the handler.
This version removes the handler from an internal map of handlers, _handlers, which is used for handler lookup by name. Subclasses should ensure that this gets called from overridden close() methods.
- createLock()#
Acquire a thread lock for serializing access to the underlying I/O.
- emit(record)#
Emit a record.
If a formatter is specified, it is used to format the record. The record is then written to the stream with a trailing newline. If exception information is present, it is formatted using traceback.print_exception and appended to the stream. If the stream has an ‘encoding’ attribute, it is used to determine how to do the output to the stream.
- filter(record)#
Determine if a record is loggable by consulting all the filters.
The default is to allow the record to be logged; any filter can veto this and the record is then dropped. Returns a zero value if a record is to be dropped, else non-zero.
Changed in version 3.2: Allow filters to be just callables.
- flush()#
Flushes the stream.
- get_name()#
- handle(record)#
Conditionally emit the specified logging record.
Emission depends on filters which may have been added to the handler. Wrap the actual emission of the record with acquisition/release of the I/O thread lock. Returns whether the filter passed the record for emission.
- handleError(record)#
Handle errors which occur during an emit() call.
This method should be called from handlers when an exception is encountered during an emit() call. If raiseExceptions is false, exceptions get silently ignored. This is what is mostly wanted for a logging system - most users will not care about errors in the logging system, they are more interested in application errors. You could, however, replace this with a custom handler if you wish. The record which was being processed is passed in to this method.
- property name#
- release()#
Release the I/O thread lock.
- removeFilter(filter)#
Remove the specified filter from this handler.
- setFormatter(fmt)#
Set the formatter for this handler.
- setLevel(level)#
Set the logging level of this handler. level must be an int or a str.
- setStream(stream)#
Sets the StreamHandler’s stream to the specified value, if it is different.
Returns the old stream, if the stream was changed, or None if it wasn’t.
- set_name(name)#
- terminator = '\n'#
qibocal.update module#
Helper functions to update parameters in platform.
- qibocal.update.readout_frequency(freq: float, platform: Platform, qubit: Union[str, int])[source]#
Update readout frequency value in platform for specific qubit.
- qibocal.update.bare_resonator_frequency(freq: float, platform: Platform, qubit: Union[str, int])[source]#
Update rbare frequency value in platform for specific qubit.
- qibocal.update.readout_amplitude(amp: float, platform: Platform, qubit: Union[str, int])[source]#
Update readout amplitude value in platform for specific qubit.
- qibocal.update.readout_attenuation(att: int, platform: Platform, qubit: Union[str, int])[source]#
Update readout attenuation value in platform for specific qubit.
- qibocal.update.drive_frequency(freq: Union[float, tuple, list], platform: Platform, qubit: Union[str, int])[source]#
Update drive frequency value in platform for specific qubit.
- qibocal.update.drive_amplitude(amp: Union[float, tuple, list], platform: Platform, qubit: Union[str, int])[source]#
Update drive frequency value in platform for specific qubit.
- qibocal.update.drive_duration(duration: Union[int, tuple, list], platform: Platform, qubit: Union[str, int])[source]#
Update drive duration value in platform for specific qubit.
- qibocal.update.crosstalk_matrix(matrix_element: float, platform: Platform, qubit: Union[str, int], flux_qubit: Union[str, int])[source]#
Update crosstalk_matrix element.
- qibocal.update.iq_angle(angle: float, platform: Platform, qubit: Union[str, int])[source]#
Update iq angle value in platform for specific qubit.
- qibocal.update.mean_gnd_states(gnd_state: list, platform: Platform, qubit: Union[str, int])[source]#
Update mean ground state value in platform for specific qubit.
- qibocal.update.mean_exc_states(exc_state: list, platform: Platform, qubit: Union[str, int])[source]#
Update mean excited state value in platform for specific qubit.
- qibocal.update.readout_fidelity(fidelity: float, platform: Platform, qubit: Union[str, int])[source]#
Update fidelity of single shot classification.
- qibocal.update.assignment_fidelity(fidelity: float, platform: Platform, qubit: Union[str, int])[source]#
Update fidelity of single shot classification.
- qibocal.update.virtual_phases(phases: dict[Union[str, int], float], native: str, platform: Platform, pair: Tuple[Union[str, int], Union[str, int]])[source]#
Update virtual phases for given qubits in pair in results.
- qibocal.update.CZ_duration(duration: int, platform: Platform, pair: Tuple[Union[str, int], Union[str, int]])[source]#
Update CZ duration for specific pair.
- qibocal.update.CZ_amplitude(amp: float, platform: Platform, pair: Tuple[Union[str, int], Union[str, int]])[source]#
Update CZ amplitude for specific pair.
- qibocal.update.iSWAP_duration(duration: int, platform: Platform, pair: Tuple[Union[str, int], Union[str, int]])[source]#
Update iSWAP_duration duration for specific pair.
- qibocal.update.iSWAP_amplitude(amp: float, platform: Platform, pair: Tuple[Union[str, int], Union[str, int]])[source]#
Update iSWAP_duration amplitude for specific pair.
- qibocal.update.t1(t1: int, platform: Platform, qubit: Union[str, int])[source]#
Update t1 value in platform for specific qubit.
- qibocal.update.t2(t2: int, platform: Platform, qubit: Union[str, int])[source]#
Update t2 value in platform for specific qubit.
- qibocal.update.t2_spin_echo(t2_spin_echo: float, platform: Platform, qubit: Union[str, int])[source]#
Update t2 echo value in platform for specific qubit.
- qibocal.update.drag_pulse_beta(beta: float, platform: Platform, qubit: Union[str, int])[source]#
Update beta parameter value in platform for specific qubit.
- qibocal.update.sweetspot(sweetspot: float, platform: Platform, qubit: Union[str, int])[source]#
Update sweetspot parameter in platform for specific qubit.
- qibocal.update.frequency_12_transition(frequency: int, platform: Platform, qubit: Union[str, int])[source]#
- qibocal.update.drive_12_amplitude(amplitude: float, platform: Platform, qubit: Union[str, int])[source]#
- qibocal.update.drive_12_duration(duration: Union[int, tuple, list], platform: Platform, qubit: Union[str, int])[source]#
Update drive duration value in platform for specific qubit.
qibocal.version module#
Package version.