class QPanda::QScheduler¶
Overview¶
CODAR algorithm, used for mapping calculations. More…
Detailed Documentation¶
CODAR algorithm, used for mapping calculations.
Fields¶
the mapping table from logical qubits to physical qubits, see getMappedPosition
the device
the output
the list of logical gates (the whole circuit)
the set of Commutative Forward gates
count of gates launched
maps from candidate swaps to their heuristic costs
Methods¶
get count of logical qubits
add a logical qubit by its position return the index of the logical qubit
add several logical qubits and make initial mapping automaticly
MUST ENSURE YOU HAVEN”T MAPPED ANY QUBIT BEFORE CALLING
Parameters:
int |
count of qubits |
Returns:
bool true if success
add a (logical) single qubit gate
add a logical double qubit gate
start remapping (call it after intialization) , The main entry of the CODAR remapper