Generate a parameterized program containing the main body program along with some additions to support the various state preparation, measurement, and symmetrization specifications of this
State preparation and measurement are achieved via ZXZXZ-decomposed single-qubit gates, where the angles of each
RZrotation are declared parameters that can be assigned at runtime. Symmetrization is achieved by putting an
RXgate (also parameterized by a declared value) before each
MEASUREoperation. In addition, a
RESEToperation is prepended to the
Programif the experiment has active qubit reset enabled. Finally, each qubit specified in the settings is measured, and the number of shots is added.
Programthat is capable of collecting statistics for every