Class MeasureProperties
Represents a quantum action that measures quantum properties and triggers events.
Implements
Namespace: QRG.QuantumForge.Runtime
Assembly: .dll
Syntax
[Serializable]
public class MeasureProperties : MonoBehaviour, IQuantumAction
Fields
| Improve this Doc View SourceOnMeasure
Event triggered when a measurement is performed.
Declaration
public UnityEvent OnMeasure
Field Value
| Type | Description |
|---|---|
| UnityEvent |
OnMeasureQuantumProperty
Event triggered with a QuantumProperty when a measurement is performed.
Declaration
public QuantumPropertyEvent OnMeasureQuantumProperty
Field Value
| Type | Description |
|---|---|
| QuantumPropertyEvent |
Properties
| Improve this Doc View SourceLastResult
Gets the last results of the measurements.
Declaration
public int[] LastResult { get; }
Property Value
| Type | Description |
|---|---|
| int[] |
Predicates
Gets or sets the predicates that determine the conditions for this action.
Declaration
public Predicate[] Predicates { get; set; }
Property Value
| Type | Description |
|---|---|
| Predicate[] |
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 Sourceapply()
Applies the measurement action to the target quantum properties.
Declaration
public void apply()