Module QuantumPathQSOAPySDK.circuit.flow.CircuitFlow

Classes

class CircuitFlow

Methods

def circuitNode(self, circuitName) ‑> dict

Add Circuit node.

Prerequisites

  • Created flow.

Parameters

circuitName : str
Circuit name to introduce in the flow.

Output

dict

def commentNode(self, comment: str) ‑> dict

Add Comment node.

Prerequisites

  • Created flow.

Parameters

comment : str
Comment.

Output

dict

def endNode(self) ‑> dict

Add End node.

Prerequisites

  • Created flow.

Output

dict

def getFlowBody(self) ‑> dict

Get Flow Body.

Prerequisites

  • Created flow.

Output

dict

def getParsedBody(self) ‑> str
def initNode(self, startValue: int) ‑> dict

Add Init node.

Prerequisites

  • Created flow.

Parameters

startValue : int
Initial value for the flow iterations.

Output

dict

def linkNodes(self, fromNode: dict, toNode: dict) ‑> dict

Link two nodes.

Prerequisites

  • Created flow.
  • Two existing nodes.

Parameters

fromNode : dict
Origin node to link.
toNode : dict
Destiny node to link.

Output

dict

def repeatNode(self, numReps: int) ‑> dict

Add Repeat node.

Prerequisites

  • Created flow.

Parameters

numReps : int
Number of circuit repetitions.

Output

dict

def startNode(self) ‑> dict

Add Start node.

Prerequisites

  • Created flow.

Output

dict