random_local_pauli_eig_prep

forest.benchmarking.utils.random_local_pauli_eig_prep(prog, op, qubit, random_seed=None)

Generate gate sequence to prepare a random local eigenstate of a Pauli operator, assuming we are starting from the ground state.

Parameters:
  • prog (Program) – The pyquil.quil.Program object to which preparation pulses will be appended
  • op (str) – Single character string representing the Pauli operator (one of ‘I’, ‘X’, ‘Y’, ‘Z’)
  • qubit (int) – index of Qubit the preparation acts on
  • random_seed (int) – A seed to seed the RNG with.
Returns:

A string description of the eigenstate prepared.