class QPanda::QVM¶
Overview¶
Inherited Members¶
Detailed Documentation¶
Methods¶
allocateQubitThroughPhyAddress
Parameters:
size_t |
address |
Returns:
QPanda::Qubit * qubit
allocateQubitThroughVirAddress
Parameters:
size_t |
address |
Returns:
QPanda::Qubit * qubit
getStatus
Returns:
finalize
Returns:
void
directlyRun
Parameters:
QProg& |
quantum program |
Returns:
std::map<std::string, bool>
runWithConfiguration
Parameters:
QProg& |
quantum program |
std::vector<ClassicalCondition>& |
|
rapidjson::Document& |
Returns:
std::map<std::string, Eigen::size_t>
runWithConfiguration
Parameters:
QProg& |
quantum program |
std::vector<ClassicalCondition>& |
|
int |
Returns:
std::map<std::string, Eigen::size_t>
getGateTimeMap
Returns:
std::map<GateType, Eigen::size_t>
getQState
Returns:
QStat
getVirtualQubitAddress
Parameters:
Qubit* |
qubit |
Returns:
Eigen::size_t
swapQubitPhysicalAddress
Parameters:
Qubit* |
qubit |
Qubit* |
qubit |
Returns:
bool
To initialize the quantum machine.
Allocate and return a qubit.
allocateQubits
Allocate and run a cbit.
Allocate and run a cbit.
Gree a list of CBits.
getAllocateQubit
Allocate and return a list of cbits.
Free a qubit.
Gree a list of qubits.
Gree a cbit.
getAllocateCMem
setConfigure
Parameters:
const |
Configuration & config |
Returns:
void
To initialize the quantum machine.
Allocate and return a qubit.
allocateQubits
Allocate and run a cbit.
Allocate and run a cbit.
Allocate and return a list of cbits.
Free a qubit.
Gree a list of qubits.
Gree a cbit.
Gree a list of CBits.
getAllocateQubit
getAllocateCMem
get allocate cbits
Parameters:
std::vector<ClassicalCondition>& |
Returns:
size_t allocate cbits size
gets the expected value of the Hamiltonian of the circuit
Parameters:
quantum program |
|
QHamiltonian |
hamiltonian |
qubits |
Returns:
double expectation
gets the expected value of the Hamiltonian of the circuit
Parameters:
quantum program |
|
QHamiltonian |
hamiltonian |
qubits |
|
int |
run shots |
Returns:
double expectation