class QPanda::OriginQubitPoolv2¶
Overview¶
Implementation class of QubitPool. More…
Inherited Members¶
Detailed Documentation¶
Implementation class of QubitPool.
Methods¶
clear the PhysicalQubit vector
get size of the PhysicalQubit vector
Returns:
size_t
get size of the idle position
Returns:
size_t
Gets the largest address in the used physical qubit.
Returns:
size_t
allocate a Qubit
Returns:
Qubit*
allocate a Qubit through physical address
Returns:
Qubit*
allocate a Qubit through virtual address
Returns:
Qubit*
free a Qubit
get physical qubit address
Parameters:
Qubit* |
Returns:
size_t
get virtual qubit address
Parameters:
Qubit* |
Returns:
size_t
get allocate qubits
Parameters:
QVec& |
Returns:
size_t