uniqc.transpiler.timeline module#

Compiled circuit timeline analysis and visualization.

This module provides tools for analyzing and visualizing the temporal execution schedule of compiled quantum programs.

uniqc.transpiler.timeline.create_time_line_table(layer_dict, qubit_list, time_line)[source]#

Create a pandas DataFrame timeline table.

Parameters:
  • layer_dict – Dict mapping layer index to gate info.

  • qubit_list – List of qubit indices.

  • time_line – List of time steps.

Returns:

Timeline table with qubits as rows and time steps as columns.

Return type:

pd.DataFrame

uniqc.transpiler.timeline.format_result(compiled_prog)[source]#

Format compiled program JSON into gate layers and qubit/time lists.

Parameters:

compiled_prog – JSON string of compiled program.

Returns:

(gate_layers, qubit_list, time_line)

Return type:

tuple

uniqc.transpiler.timeline.plot_time_line(compiled_prog, figure_save_path=PosixPath('/home/runner/work/UnifiedQuantum/UnifiedQuantum/docs/timeline_plot'))[source]#

Plot the quantum circuit timeline and save as PDF.

Parameters:
  • compiled_prog – JSON string of compiled program.

  • figure_save_path – Directory to save timeline PDF files.