class QPanda::OriginCircuit
Overview
Implementation class of QCircuit. More...
Inherited Members
Detailed Documentation
Implementation class of QCircuit.
Methods
Insert a new Node at the end of current quantum circuit.
Parameters:
QNode* |
quantum node |
Returns:
void
See also:
Set dagger to current quantum circuit.
Parameters:
bool |
is dagger |
Set control qubits to current quantum circuit.
Parameters:
control qubits vector |
See also:
Get current node type.
Returns:
NodeType current node type
See also:
Judge current quantum circuit is dagger.
Returns:
bool
Get control vector fron current quantum circuit node.
Parameters:
QVec& |
qubits vector |
Returns:
bool
See also:
Get the first NodeIter.
Returns:
Get the last NodeIter.
Returns:
Get the end NodeIter.
Returns:
Get the head NodeIter.
Returns:
Insert a new QNode at the location specified by NodeIter.
Parameters:
NodeIter& |
specified location |
std::shared_ptr<QNode> |
Inserted QNode |
Returns:
Delete a QNode at the location specified by NodeIter.
Parameters:
NodeIter& |
specified location |
Returns:
Clear all node in current quantum program node.
Returns:
void
Clear the control qubits for current quantum circuit.
See also:
Get the used qubits for current quantum circuit.
Parameters:
used qubits vector |
Returns:
size_t
Get current quantum circuit qgate number.
Returns:
size_t