Qureg
Extends:
Quantum register class. Simplifies accessing measured values for single-qubit registers (no []-access necessary) and enables pretty-printing of general quantum registers).
Constructor Summary
| Public Constructor | ||
| public | 
       constructor(args: ...any | number | Array) a little different with   | 
    |
Member Summary
| Public Members | ||
| public get | 
       engine: BasicEngine: *  | 
    |
| public set | 
       engine(newEngine: BasicEngine)  | 
    |
| public | 
      
       | 
    |
Method Summary
| Public Methods | ||
| public | 
      
       add qubits from   | 
    |
| public | 
      
       deallocate all qubit, then clear the qureg  | 
    |
| public | 
      
       test if two Quregs are equal  | 
    |
| public | 
      
       only supported when   | 
    |
| public | 
      
       number representation  | 
    |
| public | 
      
       string description  | 
    |
Public Constructors
Public Members
public set engine(newEngine: BasicEngine) source
Public Methods
public add(other: Array<Qubit> | Qureg): Qureg source
add qubits from other, return a new Qureg instance