qiskit-metapackage icon indicating copy to clipboard operation
qiskit-metapackage copied to clipboard

Use our tutorial's checklist to improve our quantum circuits tutorials

Open y4izus opened this issue 2 years ago • 1 comments

Using our tutorial's checklist, make sure that our our quantum circuits tutorials has the quality we want, and if not, improve them:

  • [ ] https://github.com/Qiskit/qiskit/issues/1519
  • [ ] https://github.com/Qiskit/qiskit/issues/1520
  • [ ] https://github.com/Qiskit/qiskit/issues/1521
  • [ ] https://github.com/Qiskit/qiskit/issues/1522

y4izus avatar Jun 21 '22 09:06 y4izus

The circuit basics and getting started with Qiskit are almost the same. A big part of them is literally copy-pasted.

The only changes are:

  • The circuit basics uses qiskit.quantum_info to get a state vector instead of the statevector_simulator from Aer like the getting started does.
  • In part because of that, the circuit basics tutorial plots a Q-Sphere and a Hinton diagram instead of the plot_state_city from the getting started tutorial.
  • When using the OpenQASM backend the circuit basics tutorial uses AerSimulator instead of qasm_simulator as the getting started tutorial does and even the circuit basics itself states.
  • They also add the measures in a slightly different way: they both create a new circuit with the classical register and the measures but the circuit basic tutorial adds the original circuit to the new one with that one and the getting started adds the registers of the new circuit to the old one and then adds the new circuit to the old one.

I suggest merging them together or deleting one of them.