BasicQubit
Direct Subclass:
objects represent qubits. They have an id and a reference to the owning engine.
Static Method Summary
| Static Public Methods | ||
| public static | 
       copyArray(array: *): *  | 
    |
Constructor Summary
| Public Constructor | ||
| public | 
       constructor(engine: BasicEngine, idx: number)  | 
    |
Member Summary
| Public Members | ||
| public | 
      
       | 
    |
| public | 
       id: *  | 
    |
Method Summary
| Public Methods | ||
| public | 
      
       Compare with other qubit (Returns true if equal id and engine).  | 
    |
| public | 
      
       | 
    |
| public | 
      
       Access the result of a previous measurement and return false / true (0 / 1)  | 
    |
| public | 
      
       | 
    |
| public | 
      
       Return string representation of this qubit.  | 
    |
| public | 
       weakCopy(): *  | 
    |
Static Public Methods
Public Constructors
public constructor(engine: BasicEngine, idx: number) source
Params:
| Name | Type | Attribute | Description | 
| engine | BasicEngine | Owning engine / engine that created the qubit  | 
    |
| idx | number | Unique index of the qubit referenced by this qubit  | 
    
Public Methods
public equal(other: *): boolean source
Compare with other qubit (Returns true if equal id and engine).
Params:
| Name | Type | Attribute | Description | 
| other | * | {BasicQubit|Object} BasicQubit to which to compare this one  |