class QPanda::CMem

Overview

CMem abstract class, this class is considered as the container of the CBit. More...

Detailed Documentation

CMem abstract class, this class is considered as the container of the CBit.

Methods

allocate a CBit

Returns:

CBit*

allocate a CBit by bit address

Returns:

CBit*

get size of the CBit vector

Returns:

size_t

get size of the idle position

Returns:

size_t

free a CBit

Parameters:

CBit*  

clear the CBit vector

get allocate cbits

Parameters:

std::vector<CBit *>&

Returns:

size_t allocate cbits size