pennylane_calculquebec.utility.graph.circuit_graph#
- pennylane_calculquebec.utility.graph.circuit_graph(tape: QuantumTape) Graph#
builds a bidirectional graph from the two qubits gates in a circuit
- Parameters:
tape (QuantumTape) – QuantumTape, a tape representing the quantum circuit
- Returns:
a graph representing the connections between the wires in the circuit
- Return type:
nx.Graph