Comments (9)
@claudefalbriard is your qvm
running? It should be running in another terminal, with following command:
qvm -c -S
from quantum-circuit.
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.
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.
@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.
(print probabilities is supported by Forest SDK/QVM but qps-client is not set to print that)
from quantum-circuit.
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.
@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.
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.
Great, closing first issue! Glad you like it! Enjoy!
from quantum-circuit.
Related Issues (20)
- Export to Cirq - classical control is not implemented
- problem with cu3 gate HOT 8
- CNOT Gate is Not in Menu HOT 6
- Bloch sphere plot wrong HOT 6
- antlr source code? HOT 3
- Feature Request: Any amount of control Qbits HOT 7
- Add barrier gate
- Wrong result with some elementary computation HOT 11
- Repository of Examples to Illustrate Quantum Programming Concepts HOT 2
- About the signed bitgate parameter
- Please disambiguate unary and binary minus in QASM HOT 1
- Simulation error in Bloch sphere
- Quantum_Classical Export HOT 3
- Interactive measurements: not clear if possible/how to do HOT 11
- ReferenceError with bundler HOT 1
- Quantum Programming Studio website down HOT 4
- Long Identifiers(?) Crash when Importing from QASM HOT 2
- Probabilities can be truncated to 0.00000% in stateAsString(true) HOT 4
- Implementation question HOT 1
- shadow declaration HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quantum-circuit.