Class PhaseRotate
Represents a quantum action that applies a phase rotation to quantum properties.
Implements
Namespace: QRG.QuantumForge.Runtime
Assembly: .dll
Syntax
[Serializable]
public class PhaseRotate : MonoBehaviour, IQuantumAction
Properties
| Improve this Doc View SourcePredicates
Gets or sets the predicates that determine the conditions for this action.
Declaration
public Predicate[] Predicates { get; set; }
Property Value
Type | Description |
---|---|
Predicate[] |
Radians
Gets or sets the angle of rotation in radians.
Declaration
public float Radians { get; set; }
Property Value
Type | Description |
---|---|
float |
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 phase rotation to the target quantum properties.
Declaration
public void apply()