GithubHelp home page GithubHelp logo

Comments (9)

perak avatar perak commented on August 16, 2024

@claudefalbriard is your qvm running? It should be running in another terminal, with following command:

qvm -c -S

from quantum-circuit.

perak avatar perak commented on August 16, 2024

By the way, not related to this issue: there is a problem with FireFox - it doesn't show scrollbars in some pages, will be fixed. If you notice please report (in a new issue). Thanks 👍

from quantum-circuit.

falbriard avatar falbriard commented on August 16, 2024

Thanks for the quick support. Indeed the process started with the command: qvm -c -S fixed the browser connectivity. After starting the process I get a log as followed:

127.0.0.1 - [2019-01-17 11:15:08] "POST /qvm HTTP/1.1" 200 12 "-" "python-requests/2.21.0"
[2019-01-17 11:19:57 [INFO]] [127.0.0.1 Session:2] Got "multishot" request from API key/User ID: NIL / NIL
[2019-01-17 11:19:57 [INFO]] [127.0.0.1 Session:2] Making qvm of 2 qubits
[2019-01-17 11:19:57 [INFO]] [127.0.0.1 Session:2] Running experiment with 1 trial on PURE-STATE-QVM
[2019-01-17 11:19:57 [INFO]] [127.0.0.1 Session:2] Finished in 3 ms
127.0.0.1 - [2019-01-17 11:19:57] "POST /qvm HTTP/1.1" 200 12 "-" "python-requests/2.21.0"

and at the browser console ouput log:
[[0]]

Question: For [ run ] where do I get the probability value for the two qubits that are part of my circuit, as shown at the simulation screen?

Yet another suggestion: A clear output window button could be helpful.

Thanks for clarification.

from quantum-circuit.

perak avatar perak commented on August 16, 2024

@falbriard all looks good now :)

Browser console output shows measurement (looks like you have "measurement" gate on single qubit, thus you have single number as output: [[0]]).

Currently, qps-client is set to return output from measurement, it doesn't print probabilities. That functionality is planned but not implemented yet (idea is to have similar screen like "Simulate -> Browser" screen).

from quantum-circuit.

perak avatar perak commented on August 16, 2024

(print probabilities is supported by Forest SDK/QVM but qps-client is not set to print that)

from quantum-circuit.

falbriard avatar falbriard commented on August 16, 2024

Thanks so much, problem isolated and fixed.
I've manually updated the QASM code to generate two classical registers for storing the results of the measurements on two entangled qubits. Here is what I've done:

Result:
[[0 0]]

QASM Code:
OPENQASM 2.0;
include "qelib1.inc";
qreg q[2];
creg r[2];
h q[0];
cx q[0], q[1];
measure q[0] -> c[1];
measure q[1] -> r[1];

As previously tested the result is OK. Both of qubits flip its state together in an aleatory result.

Suggestion: The creation of a additional classical register could eventually be automated by a "drag" of the measurement arrow, to a point below the existing registers, much the way as CNOT is creating a second qubit.

from quantum-circuit.

perak avatar perak commented on August 16, 2024

@falbriard it is possible to manipulate registers via Drag & Drop interface. Please see following video:

https://www.youtube.com/watch?v=4SfnwMr2aWg

There is green "plus" at the right side of the screen, next to word "Registers" (when no gate is selected) which allows you to add registers.

from quantum-circuit.

falbriard avatar falbriard commented on August 16, 2024

Sorry, my fault, watched in the wrong screen corner. This is perfect and gives the control. thanks. Please close this issue, its solved. Will enjoy this tool, specially for training and education.

from quantum-circuit.

perak avatar perak commented on August 16, 2024

Great, closing first issue! Glad you like it! Enjoy!

from quantum-circuit.

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.