qdk_chemistry.plugins.networkx package

NetworkX plugin for QDK/Chemistry.

Provides improved graph-coloring-based term groupers using networkx’s DSATUR (saturation-largest-first) strategy, which typically produces fewer groups than the built-in greedy first-fit algorithm.

When loaded, this plugin registers two additional term_grouper algorithms:

  • "nx_commuting" — full Pauli commutation grouping via DSATUR

  • "nx_qubit_wise_commuting" — qubit-wise commutation grouping via DSATUR

These are drop-in alternatives to the built-in "commuting" and "qubit_wise_commuting" groupers.

qdk_chemistry.plugins.networkx.load()[source]

Load the NetworkX plugin into QDK/Chemistry.

Submodules