Pete Shadbolt
b066129c42
Nicer pretty-printing
8 years ago
Pete Shadbolt
c793418517
Simplify measurement table
Dunno why it was ever `complex`
8 years ago
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
8 years ago
Pete Shadbolt
45bcdf1cca
Move lookup tables into a generated module
8 years ago
Pete Shadbolt
b4872397e9
Progress towards working measurement
8 years ago
Pete Shadbolt
2b9c7a7c83
For sam
8 years ago
Pete Shadbolt
beea2e4ddc
Test passing w/ clean GraphState :water_buffalo:
Got rid of all the debug harness and refactored graphstate.py
8 years ago
Pete Shadbolt
b67db178b2
Well this is bull shit
8 years ago
Pete Shadbolt
54bc27c327
Tidy
8 years ago
Pete Shadbolt
0ec10d155c
Meaningful conjugation code
8 years ago
Pete Shadbolt
092afb82f6
Improve clifford.py, add measurement lookup table
8 years ago
Pete Shadbolt
a50ebdd71b
Implement conjugation
8 years ago
Pete Shadbolt
7024c849d0
JS tests, remove visible graph state
8 years ago
Pete Shadbolt
f30fbd6e2b
Some small tests
8 years ago
Pete Shadbolt
0c54c159ef
Small changes to editor
8 years ago
Pete Shadbolt
40c2b3caa9
Tidy up
8 years ago
Pete Shadbolt
b063d1ff1f
Remove act_local_rotation_by_name (simplifies API)
8 years ago
Pete Shadbolt
2a6abed48c
Try again with websockets
8 years ago
Pete Shadbolt
58ced9272d
Add from_json, a buncha server/client stuff
8 years ago
Pete Shadbolt
bfdc66494d
Switch off some tests if not using legacy table
8 years ago
Pete Shadbolt
7bc9895af6
Test passing against the circuit model
We fail when running against Anders and Briegel simply because we use a
different CZ table
8 years ago
Pete Shadbolt
9854bad286
Seems to be okay against anders & briegel
8 years ago
Pete Shadbolt
7b4e4b42b5
Found something
8 years ago
Pete Shadbolt
bbc89eb4de
Modify test
8 years ago
Pete Shadbolt
d372ec8531
Add state equality checking, global phase fixing.
8 years ago
Pete Shadbolt
16d572aed4
Now thinking about GHZs.
Think CircuitModel.act_cz is wrong
8 years ago
Pete Shadbolt
8199bba2b4
Tidy up, test passing except direct C++ comparison
8 years ago
Pete Shadbolt
ec403d4c30
Loadsa stuff. CZ table bodging
8 years ago
Pete Shadbolt
4ad35423fc
Start to add measurements
8 years ago
Pete Shadbolt
bcd38f11d8
Now we are isomorphic to Anders & Briegel :)
The mistake was in the set of gates which commute with CZ
8 years ago
Pete Shadbolt
17f24fba09
It's in the set of commuters I think
8 years ago
Pete Shadbolt
183e501060
Anders & Briegel's CZ table passes my tests
But it is not symmetric. I wonder why. Can run with either for now.
8 years ago
Pete Shadbolt
a1eabb33ea
First attempt at fixing naming scheme
8 years ago
Pete Shadbolt
9e92c633f8
Fixing naming of local cliffords
8 years ago
Pete Shadbolt
e89a0a1ab1
Starting to test against Anders and Briegel
8 years ago
Pete Shadbolt
5666c6ea17
Fix mistake in CZ table generation
Using `combinations` instead of `combinations_with_replacement` was
leading to entries of the form [ ... , i, i] being excluded from the CZ
table.
8 years ago
Pete Shadbolt
fbed23eaea
Add clifford tests back in. We are test passing baby
8 years ago
Pete Shadbolt
42d209b27e
Re-organize
8 years ago
Pete Shadbolt
5ef0c90e4c
Better loading, heading towards test passing
8 years ago