mqt.qecc.circuit_synthesis.synthesis

High-level synthesis functions for quantum circuits.

Classes

SynthesisConfig

Base class for synthesis configuration.

Functions

synthesize_cnot(matrix[, config, n_stabs]) → tuple[mqt.qecc.circuit_synthesis.elimination.EliminationSequence, mqt.qecc.codes.core.pauli.CheckMatrix]

Eliminate a CSS check matrix using CNOT operations.

synthesize_non_css(tableau[, config]) → tuple[mqt.qecc.circuit_synthesis.elimination.EliminationSequence, mqt.qecc.codes.core.pauli.PauliTableau]

Eliminate a non-CSS stabilizer tableau using transvections.

Module Contents

class SynthesisConfig[source]

Base class for synthesis configuration.

synthesize_cnot(matrix: CheckMatrix, config: SynthesisConfig | None = None, n_stabs: int = 0) → tuple[EliminationSequence, CheckMatrix][source]

Eliminate a CSS check matrix using CNOT operations.

Parameters:
  • matrix – The CSS check matrix to eliminate.

  • config – Configuration for the synthesis process.

  • n_stabs – Optional number of stabilizers

Returns:

A tuple of (operations, final_matrix) where operations is the sequence of CNOT operations and final_matrix is the reduced check matrix.

Raises:

ValueError – If optimization_criterion is not “gates” or “depth”.

synthesize_non_css(tableau: PauliTableau, config: SynthesisConfig | None = None) → tuple[EliminationSequence, PauliTableau][source]

Eliminate a non-CSS stabilizer tableau using transvections.

Parameters:
  • tableau – The stabilizer tableau to eliminate.

  • config – Configuration for the synthesis process.

Returns:

A tuple of (operations, final_tableau) where operations is the sequence of tableau operations and final_tableau is the reduced tableau.

Raises:

ValueError – If optimization_criterion is not “gates” or “depth”.