Code Monkey home page Code Monkey logo

Comments (2)

rraymondhp avatar rraymondhp commented on June 7, 2024

Hi,
I agree with you that the standard notation is the best. This can be done once we swap the order of the qubits, from left to right instead of the current from right to left. I have noticed this in this tutorial:
https://nbviewer.jupyter.org/github/QISKit/qiskit-tutorial/blob/master/1_introduction/quantum_gates_and_linear_algebra.ipynb

In the hereafter, following the standard in the quantum community we treat the order of the qubits from left to right, namely, the least significant bit (LSB) is the left-most qubit. Thus, the tensor product of q0, q1, and q2 of the three qubits is defined as q0⊗q1⊗q2

.

Notice that the IBM Quantum experience uses order the qubits in the opposite way (the tensor product is q2⊗q1⊗q0
). Thus to get the standard order, we must store the measurement of the first qubit to the last bit, the second qubit to the second last bit, and so on.

from qiskit-tutorials.

jaygambetta avatar jaygambetta commented on June 7, 2024

@dtchang was discuss many times between us. Either you have to give up on the standard bits order, or the standard tensor order of gates using by quantum text books. Since the computer science community is much larger than quantum we decided to go with the standard bit order and have 0001 be qubit 0 in the excited state. It make associating the classical outcome with the bits simpler. The tutorials/user guides need more work to describe this.

from qiskit-tutorials.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.