Experiment

class qililab.Experiment(label, description=None)

Bases: StructuredProgram

Represents an experiment.

This class allows setting platform parameters and executing quantum programs.

Attributes Summary

yaml_tag

Methods Summary

execute_qprogram(qprogram[, bus_mapping, ...])

Execute a quantum program within the experiment.

get_parameter(alias, parameter[, ...])

Set a platform parameter.

set_crosstalk(crosstalk)

set_parameter(alias, parameter, value[, ...])

Set a platform parameter.

Attributes Documentation

yaml_tag = '!Experiment'

Methods Documentation

execute_qprogram(qprogram, bus_mapping=None, debug=False, calibration=None)

Execute a quantum program within the experiment.

Appends an ExecuteQProgram operation to the active block of the experiment.

Parameters:

qprogram (QProgram) – The quantum program to be executed.

get_parameter(alias, parameter, channel_id=None, output_id=None)

Set a platform parameter.

Appends a SetParameter operation to the active block of the experiment.

Parameters:
  • alias (str) – The alias for the platform component.

  • parameter (Parameter) – The parameter to set.

  • value (int | float) – The value to set for the parameter.

set_crosstalk(crosstalk)
set_parameter(alias, parameter, value, channel_id=None, output_id=None)

Set a platform parameter.

Appends a SetParameter operation to the active block of the experiment.

Parameters:
  • alias (str) – The alias for the platform component.

  • parameter (Parameter) – The parameter to set.

  • value (int | float) – The value to set for the parameter.