Pete Shadbolt
49708d426a
Recover code with debug
vor 8 Jahren
Pete Shadbolt
b31fb544bf
Found a nasty bug
vor 8 Jahren
Pete Shadbolt
1cb6a3b3c9
All single-qubit tests are now passing :rage3:
vor 8 Jahren
Pete Shadbolt
04afcae7da
Test passing, but
Some tests are disabled and forcing outcomes does not work
vor 8 Jahren
Pete Shadbolt
c793418517
Simplify measurement table
Dunno why it was ever `complex`
vor 8 Jahren
Pete Shadbolt
27df07bd52
Not there yet
vor 8 Jahren
Pete Shadbolt
924e240285
Add a probabilistic test
vor 8 Jahren
Pete Shadbolt
e33919b634
PEP8, remove cruft
vor 8 Jahren
Pete Shadbolt
19972159e5
Needed to actually `return`
vor 8 Jahren
Pete Shadbolt
5bcf7fba92
Reduce node size
Actually happened in previous commit, can't be bothered to amend
vor 8 Jahren
Pete Shadbolt
452430627a
Threaded HTTP server -> no laggy refresh
vor 8 Jahren
Pete Shadbolt
f09d1ae3f1
Finished translating measure_x. Now to write tests
It's kinda ghastly at the moment. But lots of obvious improvements.
vor 8 Jahren
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
vor 8 Jahren
Pete Shadbolt
4db6cff2c0
Implement GraphState.measure_y() - not tested
vor 8 Jahren
Pete Shadbolt
4646554779
Fix GraphState.to_json() for tuple-like nodes
vor 8 Jahren
Pete Shadbolt
0d9c202a50
Need to clone measure_x and measure_y
vor 8 Jahren
Pete Shadbolt
45bcdf1cca
Move lookup tables into a generated module
vor 8 Jahren
Pete Shadbolt
4e1fd1061b
Tidy up, delete redundant examples
vor 8 Jahren
Pete Shadbolt
049d36c3d9
Invert `-v` flag, a few small tweaks
vor 8 Jahren
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).
vor 8 Jahren
Pete Shadbolt
342934df42
Add stress test
vor 8 Jahren
Pete Shadbolt
9ceb2e8b0a
Automatically center on new graphs
vor 8 Jahren
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.
vor 8 Jahren
Pete Shadbolt
b4872397e9
Progress towards working measurement
vor 8 Jahren
Pete Shadbolt
e398d39aae
Remove adj_list()
vor 8 Jahren
Pete Shadbolt
318ab65cf2
Small JS improvement
vor 8 Jahren
Pete Shadbolt
2b9c7a7c83
For sam
vor 8 Jahren
Pete Shadbolt
0d78f792c2
Prepare for JS tests
vor 8 Jahren
Pete Shadbolt
8393390801
Add graphsim.GraphRegister.to_json() for tests
vor 8 Jahren
Pete Shadbolt
a19b25b8bd
This time really remove .agignore
vor 8 Jahren
Pete Shadbolt
beea2e4ddc
Test passing w/ clean GraphState :water_buffalo:
Got rid of all the debug harness and refactored graphstate.py
vor 8 Jahren
Pete Shadbolt
b7cda793ed
Remove all debug statements
vor 8 Jahren
Pete Shadbolt
24a00be14f
Full, heavy testing
vor 8 Jahren
Pete Shadbolt
c2b942dada
Solved a dumb little problem. TODO: refactor :gun:
vor 8 Jahren
Pete Shadbolt
1b787c4737
Think I got it
vor 8 Jahren
Pete Shadbolt
b06c1c38d8
Think I found it
vor 8 Jahren
Pete Shadbolt
faa8d05c3d
Fixing fixing fixing
vor 8 Jahren
Pete Shadbolt
f42c83a03d
Working random test against CHP
vor 8 Jahren
Pete Shadbolt
40fb9d4dfa
Testing against CHP
vor 8 Jahren
Pete Shadbolt
978b197d3d
Testing against CHP
vor 8 Jahren
Pete Shadbolt
4296e9d224
CHP
vor 8 Jahren
Pete Shadbolt
b67db178b2
Well this is bull shit
vor 8 Jahren
Pete Shadbolt
4438ca80c3
Not much
vor 8 Jahren
Pete Shadbolt
54bc27c327
Tidy
vor 8 Jahren
Pete Shadbolt
0ec10d155c
Meaningful conjugation code
vor 8 Jahren
Pete Shadbolt
4c20d4965c
:recycle:
vor 8 Jahren
Pete Shadbolt
96b772befe
Remove .agignore
vor 8 Jahren
Pete Shadbolt
95c23a0beb
Remove rubbish
vor 8 Jahren
Pete Shadbolt
092afb82f6
Improve clifford.py, add measurement lookup table
vor 8 Jahren
Pete Shadbolt
a50ebdd71b
Implement conjugation
vor 8 Jahren