mqt.problemsolver.resource_estimation.fault_tolerant_optimization¶
Submodules¶
Package Contents¶
- SINGLE_QUBIT_AND_CX_QISKIT_STDGATES: list[str] = ['x', 'y', 'z', 'h', 's', 'sdg', 't', 'tdg', 'sx', 'rx', 'ry', 'rz', 'cx']¶
- generate_data_qiskit(csv_filename: Path, benchmarks: list[Path], transpiler_passes: list[list[TransformationPass]]) None[source]¶
Generates and stores resource estimation data for quantum circuits after applying transpiler passes.
This function reads quantum circuit benchmarks, applies specified transpiler passes using Qiskit, estimates resources before and after optimization, and saves the results to an Excel file. Only cases where the optimization changes the gate count, number of qubits, or runtime are recorded.
- Parameters:
csv_filename – Path to the Excel file where results will be stored.
benchmarks – List of benchmark circuit paths to process.
transpiler_passes – List of transpiler passes to apply for optimization.
- generate_data_tket(csv_filename: Path, benchmarks: list[Path], transpiler_passes: list[pytket.passes.BasePass], transpiler_passes_names: list[str]) None[source]¶
Generates and stores resource estimation data for quantum circuits after applying transpiler passes.
This function reads quantum circuit benchmarks, applies specified transpiler passes using TKET, estimates resources before and after optimization, and saves the results to an Excel file. Only cases where the optimization changes the gate count, number of qubits, or runtime are recorded.
- Parameters:
csv_filename – Path to the Excel file where results will be stored.
benchmarks – List of benchmark circuit paths to process.
transpiler_passes – List of transpiler passes to apply for optimization.
transpiler_passes_names – List of names corresponding to each transpiler pass.