Search Results for

    Show / Hide Table of Contents

    Class MeasurePredicates

    Represents a quantum action that measures predicates and triggers events.

    Inheritance
    object
    MeasurePredicates
    Implements
    IQuantumAction
    Namespace: QRG.QuantumForge.Runtime
    Assembly: .dll
    Syntax
    [Serializable]
    public class MeasurePredicates : MonoBehaviour, IQuantumAction

    Fields

    | Improve this Doc View Source

    OnMeasure

    Event triggered when a measurement is performed.

    Declaration
    public UnityEvent OnMeasure
    Field Value
    Type Description
    UnityEvent
    | Improve this Doc View Source

    OnMeasurePredicates

    Event triggered with a QuantumProperty when a measurement is performed.

    Declaration
    public MeasurePredicateEvent OnMeasurePredicates
    Field Value
    Type Description
    MeasurePredicateEvent

    Properties

    | Improve this Doc View Source

    LastResult

    Gets the last result of the measurement.

    Declaration
    public int LastResult { get; }
    Property Value
    Type Description
    int
    | Improve this Doc View Source

    Predicates

    Represents a quantum action that measures predicates and triggers events.

    Declaration
    public Predicate[] Predicates { get; set; }
    Property Value
    Type Description
    Predicate[]
    | Improve this Doc View Source

    TargetProperties

    Gets or sets the quantum properties that this action targets.

    Declaration
    public QuantumProperty[] TargetProperties { get; set; }
    Property Value
    Type Description
    QuantumProperty[]

    Methods

    | Improve this Doc View Source

    apply()

    Applies the measurement action to the target quantum properties.

    Declaration
    public void apply()

    Implements

    IQuantumAction
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX