qibocal.cli package#

CLI entry point.

Submodules#

qibocal.cli.acquisition module#

qibocal.cli.acquisition.acquire(runcard, folder, force)[source]#

Data acquisition

Parameters:

RUNCARD (-) – runcard with declarative inputs.

qibocal.cli.autocalibration module#

qibocal.cli.autocalibration.autocalibrate(runcard, folder, force, update)[source]#

Autocalibration

Parameters:

RUNCARD (-) – runcard with declarative inputs.

qibocal.cli.fit module#

qibocal.cli.fit.fit(path, update)[source]#

Post-processing analysis

Arguments:

  • FOLDER: input folder.

qibocal.cli.report module#

qibocal.cli.report.report(path)[source]#

Report generation

Arguments:

  • FOLDER: input folder.

class qibocal.cli.report.ReportBuilder(path: Path, qubits, executor: Executor, metadata, history=None)[source]#

Bases: object

Builder to produce html report.

property history#
routine_name(routine, iteration)[source]#

Prettify routine’s name for report headers.

routine_qubits(task_id: tuple[qibocal.auto.runcard.Id, int])[source]#

Get local qubits parameter from Task if available otherwise use global one.

single_qubit_plot(task_id: tuple[qibocal.auto.runcard.Id, int], qubit: Union[str, int])[source]#

Generate single qubit plot.

plot(task_id: tuple[qibocal.auto.runcard.Id, int])[source]#

Generate plot when only acquisition data are provided.

run(path)[source]#

Generation of html report.

qibocal.cli.upload module#

Upload report to server.

qibocal.cli.upload.upload_report(path: Path, tag: str, author: str)[source]#

qibocal.cli.utils module#

Helper functions for the cli module

qibocal.cli.utils.dump_report(meta, path)[source]#
qibocal.cli.utils.create_qubits_dict(qubits, platform)[source]#
qibocal.cli.utils.generate_meta(backend, platform, path)[source]#

Methods that takes care of: - dumping original platform - storing qq runcard - generating meta.yml

qibocal.cli.utils.generate_output_folder(folder, force)[source]#

Generation of qq output folder

Parameters:
  • folder (path) – path for the output folder. If None it will be created a folder automatically

  • force (bool) – option to overwrite the output folder if it exists already.

Returns:

Output path.