class QPanda::QubitPool¶
Overview¶
QubitPool abstract class It is the container of the PhysicalQubit. More...
Detailed Documentation¶
QubitPool abstract class It is the container of the PhysicalQubit.
Methods¶
get size of the PhysicalQubit vector
Returns:
size_t
Gets the largest address in the used physical qubit.
Returns:
size_t
get size of the idle position
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
clear the PhysicalQubit vector
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