>>> sigma_x = np.array([[0.0, 1.0], [1.0, 0.0]])
>>> sigma_z = np.array([[1.0, 0.0], [0.0, -1.0]])
>>> batched_operators = np.asarray([sigma_x, sigma_z])
>>> graph.constant_pwc_operator(duration=0.1, operator=batched_operators, name="op")
<Pwc: name="op", operation_name="constant_pwc_operator", value_shape=(2, 2), batch_shape=(2,)>
>>> result = qctrl.functions.calculate_graph(graph=graph, output_node_names=["op"])
>>> result.output["op"]
[
[{"value": array([[0.0, 1.0], [1.0, 0.0]]), "duration": 0.1}],
[{"value": array([[1.0, 0.0], [0.0, -1.0]]), "duration": 0.1}],
]