Git Product home page Git Product logo

Comments (2)

notmgsk avatar notmgsk commented on May 25, 2024

Thanks @jclapis for the report. I'll get this fixed in the upcoming release.

from qvm.

jclapis avatar jclapis commented on May 25, 2024

Out of interest @jclapis do you see the same behaviour if you do echo H 0 | qvm?

Yeah, as far as I can tell the timeout happens for everything except qvm --help. I just tried this and can confirm it also runs into the same problem:

c:\Program Files\Rigetti Computing\Forest SDK for Windows>echo H 0 | qvm
! ! ! Condition raised: Condition USOCKET:TIMEOUT-ERROR was signalled.
<131>1 2019-05-10T20:40:10Z (hostname) qvm - - - Error encountered, quitting.

Once I run my pretend update server, it works:

c:\Program Files\Rigetti Computing\Forest SDK for Windows>echo H 0 | qvm
******************************
* Welcome to the Rigetti QVM *
******************************
Copyright (c) 2016-2019 Rigetti Computing.

This is a part of the Forest SDK. By using this program
you agree to the End User License Agreement (EULA) supplied
with this program. If you did not receive the EULA, please
contact <[email protected]>.

(Configured with 10240 MiB of workspace and 1 worker.)

<135>1 2019-05-10T20:42:53Z (hostname) qvm - - - Selected simulation method: pure-state
<135>1 2019-05-10T20:42:53Z (hostname) qvm - - - Reading program.
<135>1 2019-05-10T20:42:53Z (hostname) qvm - - - Allocating memory for QVM of 1 qubits.
<135>1 2019-05-10T20:42:53Z (hostname) qvm - - - Allocation completed in 7 ms.
<135>1 2019-05-10T20:42:53Z (hostname) qvm - - - Loading quantum program.
<135>1 2019-05-10T20:42:53Z (hostname) qvm - - - Executing quantum program.
<135>1 2019-05-10T20:42:53Z (hostname) qvm - - - Execution completed in 7 ms.
<135>1 2019-05-10T20:42:53Z (hostname) qvm - - - Printing classical memory and 1-qubit state.
Classical memory (low -> high indexes):
    No memory.
Amplitudes:
    |0>: 0.7071067811865475,                                    P= 50.0%
    |1>: 0.7071067811865475,                                    P= 50.0%

For reference, here's the code for the pretend update server I wrote: https://github.com/jclapis/qsfe/blob/master/Forest/RigettiUpdateProxy/Program.cs

It just listens on 127.0.0.1:80 for GET requests to /qcs-sdk/version/, and returns the version JSON. QVM and Quilc work fine once that's running.

from qvm.

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.