I want to visualize a pennylane circuit in latex rather than ascii.
Altough `penny-qiskit" plugin can do it, measurement operations were mixed with gate operations.
n_qubits = 6 dev_qiskit = qml.device("qiskit.aer", wires=n_qubits) @qml.qnode(dev_qiskit) def f(x): qml.RX(x, wires=0) qml.RZ(x, wires=0) qml.RZ(x, wires=2) qml.RZ(x, wires=4) qml.CNOT(wires=[0,1]) return qml.expval(qml.PauliZ(0)) f(0.3) dev_qiskit._circuit.draw('mpl')
This image is very complicated!
I expect the followring result.
This image was generated by qiskit and its barrier function.
from qiskit import QuantumCircuit n_qubits = 6 circ = QuantumCircuit(n_qubits) circ.rx(0.3,0) circ.barrier() circ.rz(0.3,0) circ.rz(0.3,2) circ.rz(0.3,4) circ.barrier() circ.cnot(0,1) circ.measure_all() circ.draw('mpl')
I want to generate same image with using pennylane-qiskit.
Because, I’m a pennylane-lover.
Is it possible?