>>> graph.signals.square_pulse_pwc(
... duration=4.0,
... segment_count=100,
... amplitude=2.5,
... start_time=1.0,
... end_time=3.0,
... name="square",
... )
<Pwc: name="square", operation_name="pwc_signal", value_shape=(), batch_shape=()>
>>> result = qctrl.functions.calculate_graph(graph=graph, output_node_names=["square"])
>>> result.output["square"]
[
{'duration': 0.04, 'value': 0.0},
...
{'duration': 0.04, 'value': 0.0},
{'duration': 0.04, 'value': 2.5},
...
{'duration': 0.04, 'value': 2.5},
{'duration': 0.04, 'value': 0.0}
...
{'duration': 0.04, 'value': 0.0}
]