DeltakitParserOptions#

class cuquantum.stabilizer.DeltakitParserOptions(reject_unsupported: bool = True)[source]#

Options controlling deltakit-stim conversion.

Parameters:

reject_unsupported – Raise ValueError when an unsupported deltakit/Stim gate is encountered. If False, leave that line unchanged in the output text.

Note

Deltakit-stim CX(s01, s10, m01, m10) applies spread then move per direction, with move only if the partner is still unleaked after spread. The effective rates are P(spread)=s and P(move)=(1-s)*m. cuStabilizer LEAKAGE_PROPAGATE uses mutually exclusive rates, so each direction is rewritten as (s, (1-s)*m). For example, CX(0.03, 0, 0.05, 0) becomes LEAKAGE_PROPAGATE(0.03, 0, 0.0485, 0).