paulie.application.pauli_compiler.compile_target#

paulie.application.pauli_compiler.compile_target(target, k_left)#

Compile a full target Pauli string into a generator sequence.

Parameters:
  • target – The target Pauli string to compile.

  • k_left – Number of qubits in the left partition (must be >= 2).

Returns:

Sequence in PauLie’s nested_adjoint orientation such that PauliStringCollection(seq[:-1]).nested_adjoint(seq[-1]) == target.

Raises:

ValueError – If k_left is out of range.