qml.ftqc.make_graph_state¶
- make_graph_state(graph, wires, one_qubit_ops=<class 'pennylane.ops.qubit.non_parametric_ops.Hadamard'>, two_qubit_ops=<class 'pennylane.ops.op_math.controlled_ops.CZ'>)[source]¶
A program-capture compatible way to create a GraphStatePrep template. We can’t capture the graph object in plxpr, so instead, if capture is enabled, we capture the operations generated in computing the decomposition.
code/api/pennylane.ftqc.make_graph_state
Download Python script
Download Notebook
View on GitHub