hsinyuan-huang / predicting-quantum-properties Goto Github PK
View Code? Open in Web Editor NEWUsing very few measurements to predict properties in quantum many-body systems.
Using very few measurements to predict properties in quantum many-body systems.
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.