MCPcopy Create free account
hub / github.com/OriginQ/QPanda-2 / OriginQWhile

Method OriginQWhile

Core/QuantumCircuit/ControlFlow.cpp:357–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355}
356
357OriginQWhile::OriginQWhile(ClassicalCondition classical_condition, QProg node)
358 : m_node_type(WHILE_START_NODE),
359 m_classical_condition(classical_condition)
360{
361 auto node_shared_ptr = node.getImplementationPtr();
362 m_true_item = new OriginItem();
363 m_true_item->setNode(dynamic_pointer_cast<QNode>(node_shared_ptr));
364}
365
366NodeType OriginQWhile::getNodeType() const
367{

Callers

nothing calls this directly

Calls 2

setNodeMethod · 0.80
getImplementationPtrMethod · 0.45

Tested by

no test coverage detected