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_adjointorientation such thatPauliStringCollection(seq[:-1]).nested_adjoint(seq[-1]) == target.- Raises:
ValueError – If
k_leftis out of range.