ManualMapper
Extends:
Manual Mapper which adds QubitPlacementTags to Allocate gate commands according to a user-specified mapping.
Constructor Summary
| Public Constructor | ||
| public | 
       constructor(mapFunc: function)  | 
    |
Member Summary
| Public Members | ||
| public | 
       currentMapping: {}  | 
    |
| public | 
       map: *  | 
    |
Method Summary
| Public Methods | ||
| public | 
      
       Receives a command list and passes it to the next engine, adding qubit placement tags to allocate gates.  | 
    |
Inherited Summary
| From class BasicEngine | ||
| public | 
      
       | 
    |
| public | 
       allocateQubit(dirty: boolean): Qureg Return a new qubit as a list containing 1 qubit object (quantum register of size 1).  | 
    |
| public | 
       allocateQureg(n: number): Qureg Allocate n qubits and return them as a quantum register, which is a list of qubit objects.  | 
    |
| public | 
       deallocateQubit(qubit: BasicQubit) Deallocate a qubit (and sends the deallocation command down the pipeline).  | 
    |
| public | 
       isAvailable(cmd: Command): boolean Default implementation of isAvailable: Ask the next engine whether a command is available, i.e., whether it can be executed by the next engine(s).  | 
    |
| public | 
       isMetaTagSupported(metaTag: function): boolean Check if there is a compiler engine handling the meta tag  | 
    |
| public | 
       receive()  | 
    |
| public | 
      
       Forward the list of commands to the next engine in the pipeline.  | 
    |
| From class BasicMapperEngine | ||
| public get | 
      
       | 
    |
| public set | 
      
       | 
    |
| private | 
      
       | 
    |
| public | 
       sendCMDWithMappedIDs(cmd: Command) Send this Command using the mapped qubit ids of this.current_mapping.  | 
    |
Public Constructors
public constructor(mapFunc: function) source
Override:
BasicMapperEngine#constructorParams:
| Name | Type | Attribute | Description | 
| mapFunc | function | Function which, given the qubit id, returns an integer describing the physical location (must be constant).  | 
    
Public Members
public map: * source
Public Methods
public receive(command_list: Command[]) source
Receives a command list and passes it to the next engine, adding qubit placement tags to allocate gates.
Override:
BasicEngine#receiveParams:
| Name | Type | Attribute | Description | 
| command_list | Command[] | list of commands to receive.  |