pygsti.tools.errgenproptools.compute_phase_reference

pygsti.tools.errgenproptools.compute_phase_reference#

compute_phase_reference(tableau)#

Compute a canonical state, corresponding to the smallest state with non-zero amplitude, to use as a phase reference in computing the phases of components of this stabilizer state.

Parameters:

tableau (Union[stim.Tableau, stim.TableauSimulator]) – stim.Tableau or stim.TableauSimulator corresponding to the stabilizer state we want the random support for.

Returns:

ref_state – A list of boolean values corresponding to a bitstring for the phase reference.

Return type:

list[bool]