Class ISwap
Represents a quantum ISwap action that applies an ISwap operation to quantum properties.
Implements
Namespace: QRG.QuantumForge.Runtime
Assembly: .dll
Syntax
[Serializable]
public class ISwap : MonoBehaviour, IQuantumAction
Fields
| Improve this Doc View Sourcefraction
The fraction of the ISwap operation to apply.
Declaration
public float fraction
Field Value
Type | Description |
---|---|
float |
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[] |
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 ISwap operation to the target quantum properties.
Declaration
public void apply()