Pete Shadbolt
e33919b634
PEP8, remove cruft
hace 8 años
Pete Shadbolt
19972159e5
Needed to actually `return`
hace 8 años
Pete Shadbolt
452430627a
Threaded HTTP server -> no laggy refresh
hace 8 años
Pete Shadbolt
f09d1ae3f1
Finished translating measure_x. Now to write tests
It's kinda ghastly at the moment. But lots of obvious improvements.
hace 8 años
Pete Shadbolt
26569dfc32
Working on measure_x
Added some more terms to clifford.by_name to ease lookup of complex
conjugates
Added GraphState.toggle_edges(), used by GraphState.measure_x
Nearly finished GraphState.measure_x
hace 8 años
Pete Shadbolt
4db6cff2c0
Implement GraphState.measure_y() - not tested
hace 8 años
Pete Shadbolt
4646554779
Fix GraphState.to_json() for tuple-like nodes
hace 8 años
Pete Shadbolt
0d9c202a50
Need to clone measure_x and measure_y
hace 8 años
Pete Shadbolt
45bcdf1cca
Move lookup tables into a generated module
hace 8 años
Pete Shadbolt
049d36c3d9
Invert `-v` flag, a few small tweaks
hace 8 años
Pete Shadbolt
95dc82cb19
Buttery smooth :cow: :bread:
Made sure that `graph.js` dumps old graphs after use, and ensured that
`examples/stress_test` shuts down the connection after use (don't create millions
of clients).
hace 8 años
Pete Shadbolt
548f7f59e0
Stopped WebSocket client from hanging :gun:
By default the server echoes messages to all clients.
The fancy.GraphState client was never calling ws.recv()
And hence a buffer was filling up somewhere
And we were hanging.
Adding a ws.recv() fixed the problem.
hace 8 años
Pete Shadbolt
b4872397e9
Progress towards working measurement
hace 8 años
Pete Shadbolt
e398d39aae
Remove adj_list()
hace 8 años
Pete Shadbolt
2b9c7a7c83
For sam
hace 8 años
Pete Shadbolt
0d78f792c2
Prepare for JS tests
hace 8 años
Pete Shadbolt
beea2e4ddc
Test passing w/ clean GraphState :water_buffalo:
Got rid of all the debug harness and refactored graphstate.py
hace 8 años
Pete Shadbolt
b7cda793ed
Remove all debug statements
hace 8 años
Pete Shadbolt
1b787c4737
Think I got it
hace 8 años
Pete Shadbolt
b06c1c38d8
Think I found it
hace 8 años
Pete Shadbolt
faa8d05c3d
Fixing fixing fixing
hace 8 años
Pete Shadbolt
f42c83a03d
Working random test against CHP
hace 8 años
Pete Shadbolt
978b197d3d
Testing against CHP
hace 8 años
Pete Shadbolt
b67db178b2
Well this is bull shit
hace 8 años
Pete Shadbolt
4438ca80c3
Not much
hace 8 años
Pete Shadbolt
54bc27c327
Tidy
hace 8 años
Pete Shadbolt
0ec10d155c
Meaningful conjugation code
hace 8 años
Pete Shadbolt
092afb82f6
Improve clifford.py, add measurement lookup table
hace 8 años
Pete Shadbolt
a50ebdd71b
Implement conjugation
hace 8 años
Pete Shadbolt
0bbec5ce97
Remove scipy dependency, add requirements.txt
hace 8 años
Pete Shadbolt
23fec82583
Preparing to implement measurement
hace 8 años
Pete Shadbolt
35ddc3397a
Repair missing VOPs
hace 8 años
Pete Shadbolt
96e6678393
Auto layout
hace 8 años
Pete Shadbolt
7024c849d0
JS tests, remove visible graph state
hace 8 años
Pete Shadbolt
f30fbd6e2b
Some small tests
hace 8 años
Pete Shadbolt
b3c9dce45b
Rudimentary editing is, CZs etc now work.
Next up: measurement
Also added a test on local complementation
hace 8 años
Pete Shadbolt
d3e93ca550
Fix small things
hace 8 años
Pete Shadbolt
513e09b681
Magical networkx integration :sparkling_heart:
hace 8 años
Pete Shadbolt
34fdffea9d
Woah - major refactoring! Bad bway!!! :gun: :gun:
hace 8 años
Pete Shadbolt
0c54c159ef
Small changes to editor
hace 8 años
Pete Shadbolt
2596c65a33
Fast server boot
hace 8 años
Pete Shadbolt
60a5a22c06
Server now serves HTML to localhost:5001 :gun:
And we automatically pop a browser window when the server boots. Nice
hace 8 años
Pete Shadbolt
6e500dc7b5
Fix VisibleDeprecationWarning in `graphstate.py`
hace 8 años
Pete Shadbolt
40c2b3caa9
Tidy up
hace 8 años
Pete Shadbolt
7785d264c9
Add stuff
hace 8 años
Pete Shadbolt
eb4fe7d81e
Move some files, comment visiblegraphstate
hace 8 años
Pete Shadbolt
8bf12a2ac7
Great - we have 2-way comms working properly now
hace 8 años
Pete Shadbolt
7bbaa85001
Improvements in speed, interface
hace 8 años
Pete Shadbolt
3a39a49ef0
Looks a little more promising
hace 8 años
Pete Shadbolt
a8e9a9eae4
Start diffing
hace 8 años