GithubHelp home page GithubHelp logo

hsinyuan-huang / predicting-quantum-properties Goto Github PK

View Code? Open in Web Editor NEW
180.0 180.0 29.0 225 KB

Using very few measurements to predict properties in quantum many-body systems.

C++ 69.76% Python 30.24%
measurement-schemes qubits randomized-measurements

predicting-quantum-properties's People

Contributors

hsinyuan-huang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

predicting-quantum-properties's Issues

Infinite loop with derandomized measurement when the number of measurements per observables is large.

For the problem I'm considering, the number of qubits of the quantum system is 10. And I want to measure, using derandomized measurement, all the 1-local and 2-local observables consist of Pauli Z and X operators, which are stored in the file named my_observables.txt. After compiling the *.cpp files, I run the command data_acquisition_shadow -d [measurements per observable] my_observables.txt 1> scheme.txt. This only works properly for [measurements per observable] smaller than 100000. When the the number of measurements per observable is set to 100000 or larger, the programm just keeps running and won't stop.

I'm not sure whether this issue is due to the bug in the implementation of the data_acquisition_shadow.cpp file or the defect of the derandomization algorithm itself.

assertion failed in data_acquisition_shadow.cpp

Sorry for interrupt after your wonderful work published 4 yrs ago. I'm an undergraduate student major in physics, and when I was trying to repeat this work, the "readme.md" shell line "> ./data_acquisition_shadow -d 100 generated_observables.txt 1> scheme.txt" was ended with a fatal error
Assertion failed: (pauli_observable[0] == 'X' || pauli_observable[0] == 'Y' || pauli_observable[0] == 'Z'), function read_all_observables, file data_acquisition_shadow.cpp, line 86.
[1] 9491 abort ./data_acquisition_shadow -d 100 generated_observables.txt

And, when running "./data_acquisition_shadow -d 1 observables.txt", the program print:
X Y X Y Y X Y X Y X
[Status 1: 7]
X X Y X Y Y X Y X Y
[Status 2: 13]
X X X X X Y X X Y X
[Status 3: 16]
X X X X X X X X X X
[Status 4: 17]

instead of

X Y X Y Y X Y X Y X
[Status 1: 0]
X X Y X Y Y X Y X Y
[Status 2: 0]
X X X X X Y X X Y X
[Status 3: 0]
X X X X X X X X X X
[Status 4: 1]

I would be grateful if you could help me to solve this question. Much appreciated.

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.