topqad_sdk.compiler package
Submodules
topqad_sdk.compiler.compiler module
- class topqad_sdk.compiler.compiler.CompilationResult(response: CompilerPipelineSolutionResponse)[source]
Bases:
object
Result of the Compilation service run.
- property decomposed_circuit_path
Path to the decomposed circuit
- property num_logical_measurements
Number of logical measurements
- property num_non_clifford_operations
Number of non clifford gates
- property rotations_circuit_path
Path to the circuit decomposed into Pauli rotations
- property scheduled_output_filepath
Path to the assembled schedule file
- property sk_accumulated_error
Error induced by decomposition of gates
- property total_num_operations
Total number of gates
- class topqad_sdk.compiler.compiler.Compiler[source]
Bases:
object
Wrapper class for interacting with the Compiler service.
- compile(circuit: Circuit, error_budget: float, bypass_optimization: bool = False, insights_only: bool = False) CompilationResult [source]
Run the Compilation Pipeline.
- Parameters:
circuit – The quantum circuit to be processed.
error_budget – Allowed synthesis error to be used
remove_clifford_gates – Flag to determine whether or not to bypass the optimization stage
insights_only – Flag to determine if the output of the scheduler is produced
- Returns:
Result of the compilation run execution
- Return type:
- Raises:
RuntimeError – If the Compiler service fails to execute
Module contents
- class topqad_sdk.compiler.Compiler[source]
Bases:
object
Wrapper class for interacting with the Compiler service.
- compile(circuit: Circuit, error_budget: float, bypass_optimization: bool = False, insights_only: bool = False) CompilationResult [source]
Run the Compilation Pipeline.
- Parameters:
circuit – The quantum circuit to be processed.
error_budget – Allowed synthesis error to be used
remove_clifford_gates – Flag to determine whether or not to bypass the optimization stage
insights_only – Flag to determine if the output of the scheduler is produced
- Returns:
Result of the compilation run execution
- Return type:
- Raises:
RuntimeError – If the Compiler service fails to execute