GithubHelp home page GithubHelp logo

Inconsistent Gate Names about c3 HOT 7 CLOSED

q-optimize avatar q-optimize commented on June 19, 2024
Inconsistent Gate Names

from c3.

Comments (7)

fedroy avatar fedroy commented on June 19, 2024

I'm not sure that there is really a convention that is agreed upon.
I'm guessing most lab would compile an X in a circuit to be a RX(pi) because ultimately the only difference is a i.
Not sure how you would do it otherwise...

from c3.

GlaserN avatar GlaserN commented on June 19, 2024

I guess this new notation over complicates the notation.
I guess most textbooks would call x90p only to be a X-gate (also qiskit) analogous for being an Y and Z. However It will be useful to seperate between plus and minus gate. And find a unifying notation. However using rx is not really useful as this is mostly used as an pi/2 pulse and not using a notation in degrees, hence not making it more understandable.

For the CZ and CNOT gate I would say the new notation to be very confusing. As text books would only refer to them as such or for CNOT as CX.

from c3.

fedroy avatar fedroy commented on June 19, 2024

https://qiskit.org/documentation/tutorials/circuits/3_summary_of_quantum_operations.html
This seems relevant.

from c3.

lazyoracle avatar lazyoracle commented on June 19, 2024

A renaming and restructuring of how we assign gates and qubits and indices and parameters is due as @nwittler is working on it. That should hopefully adopt OpenQasm specifications which would (ideally) mean we fully comply with Qiskit gate naming scheme. Which in short, is that X, Y, Z refer to Pauli matrix gates and all rotational (and other parametric) gates are specified with a parameter. This also has the added benefit of extra clarity in names reflecting actual gate implementations. If we wish to not take up the Qiskit nomenclature for gates, we would need to discuss, decide and thoroughly document our internal nomenclature that is scalable and flexible. Once that is in place, this discussion of X == RX90p would be moot.

from c3.

shaimach avatar shaimach commented on June 19, 2024

from c3.

lazyoracle avatar lazyoracle commented on June 19, 2024

Preview of what gate and qubit naming looks like in OpenQasm and what we hopefully will adopt.

instructions: [
                {"name": "rx", "qubits": [0], "params": [0.4]},
                {"name": "u2", "qubits": [0], "params": [0.4,0.2]},
                {"name": "u3", "qubits": [0], "params": [0.4,0.2,-0.3]},
                {"name": "cx", "qubits": [0,1]},
                {"name": "measure", "qubits": [0], "register": [1], "memory": [0]},
            ]

from c3.

lazyoracle avatar lazyoracle commented on June 19, 2024

Related: #57

from c3.

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.