local_pauli_eig_prep

forest.benchmarking.utils.local_pauli_eig_prep(op, qubit)

Generate gate sequence to prepare a the +1 eigenstate of a Pauli operator, assuming we are starting from the ground state ( the +1 eigenstate of \(Z^{\otimes n}\))

Parameters:
  • op (str) – A string representation of the Pauli operator whose eigenstate we’d like to prepare.
  • qubit (int) – The index of the qubit that the preparation is acting on
Returns:

The preparation Program.