I am running certain circuits in the Aer simulators and I need to present them nicely. I prefer to use the options provided by Seaborn. How can I transfer my Aer data, e.g. histograms, to Seaborn?
For example, running the simple circuit:
meas = QuantumCircuit(3, 3) meas.barrier(range(3)) meas.measure(range(3), range(3)) circ.add_register(meas.cregs) qc = circ.compose(meas) qc.draw()
and using Aer
backend_sim = Aer.get_backend('qasm_simulator') job_sim = backend_sim.run(transpile(qc, backend_sim), shots=1024) result_sim = job_sim.result() counts = result_sim.get_counts(qc) from qiskit.visualization import plot_histogram plot_histogram(counts)
However, I prefer to use the stylistic options of Seaborn instead in order to make nice plots.