MeasurementPhase#
qualtran.simulation.classical_sim.MeasurementPhase
View source on GitHub
|
Sentinel value for phases based on measurement outcomes:
qualtran.simulation.classical_sim.MeasurementPhase(
reg_name, idx=attr_dict['idx'].default
)
This can be returned from Bloq.basis_state_phase
if a phase should be applied based on a measurement outcome.
This can be used in special circumstances to verify measurement-based uncomputation (MBUC).
Args
Attributes
Methods#
__ne__
__ne__(
other
)
Check equality and either forward a NotImplemented or return the result negated.
__eq__
__eq__(
other
)
Method generated by attrs for class MeasurementPhase.
View source on GitHub