class mentpy.ControlMent(mentpy.Measurement)

Controlled measurement operator.

Constructors

ControlMent(condition: bool | MentOutcome | None = None, ...)

Controlled measurement operator.

String representation

__repr__() str

Return repr(self).

Methods

angle(*args, **kwargs)
copy()

Returns a copy of the measurement.

get_povm(angle: float | None = None, *args, **kwargs)

Returns the POVM representation of the measurement.

is_trainable()

Returns True if the measurement is trainable.

matrix(angle: float | None = None, *args, **kwargs)

Return the matrix of the controlled measurement operator.

plane(*args, **kwargs)
set_angle(angle)

Sets the angle of the measurement.

Properties

property condition : bool
property node_id : Any
property outcome : MentOutcome