Git Product home page Git Product logo

Comments (5)

wslu42 avatar wslu42 commented on July 4, 2024

I think there's an issue with line 227 for bit in outputnum_clbitsap: - I tried to print outputnum_clbitsap out but it shows {}.

Also I noticed that if I just replace out_list with raw_out in line 229 it shows correct readout (not sure about the order of the qubit tho).

from microqiskit.

wslu42 avatar wslu42 commented on July 4, 2024

I kind of solve this by adding one line after line 226 in this microqiskit.py file

(ln226) out_list = ['0']*qc.num_clbits
(lnADD) outputnum_clbitsap = range(qc.num_clbits)
(ln227) for bit in outputnum_clbitsap:

Not sure if this will cause any troubles in other parts of the code tho...

from microqiskit.

wslu42 avatar wslu42 commented on July 4, 2024

On a different note, I think the situation that outputnum_clbitsap is not updated should cause some trouble at some point in the code, but I am not sure what's the best way to fix it since I'm not sure what's the original data format we were expecting it to be.

from microqiskit.

quantumjim avatar quantumjim commented on July 4, 2024

Thanks for the interest. However, I think the code snippet you provide actually works as expected, since a counts output requires measurement gates.

from microqiskit.

wslu42 avatar wslu42 commented on July 4, 2024

Ah thanks for pointing it out and sorry for raising dumb concerns!! this may be closed or I can delete it as well.

from microqiskit.

Related Issues (16)

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.