Pete Shadbolt
2698308d49
Test passing
pirms 7 gadiem
Pete Shadbolt
a891510398
Merge
pirms 7 gadiem
Pete Shadbolt
86b471e72a
Test passing
pirms 7 gadiem
Pete Shadbolt
2ba69d143e
Removing TQDMs
pirms 7 gadiem
Pete Shadbolt
8b87991ea5
Ported to Python3 on a goddam phone
pirms 7 gadiem
Pete Shadbolt
c9121351c6
Blindly ran 2to3 against all python files.
pirms 7 gadiem
Pete Shadbolt
56e65b6c7f
Reverse order of tuples in GraphState.act_circuit
Seems vaguely sensible. Haven't tested because I'm on a plane.
pirms 8 gadiem
Pete Shadbolt
fc92ce3747
Add shorthand function to run multiple CZs.
pirms 8 gadiem
Pete Shadbolt
9fae542174
Working on removing fancy.py
pirms 8 gadiem
Pete Shadbolt
cd589612b2
Move DETERMINISTIC to a library setting
pirms 8 gadiem
Pete Shadbolt
ec23365183
Finish updating docs, add Stabilizer.__getitem__
pirms 8 gadiem
Pete Shadbolt
b58079172d
Working on syntactic sugar and docs simultaneously
pirms 8 gadiem
Pete Shadbolt
1bdb86f9a4
Remove print in a test
pirms 8 gadiem
Pete Shadbolt
329cbe70e3
PEP8
pirms 8 gadiem
Pete Shadbolt
9bfe0459bd
Add a test for measure_sequence, closes #13
pirms 8 gadiem
Pete Shadbolt
37dd9265ce
Can now sketchily delete nodes. Needs work.
pirms 8 gadiem
Pete Shadbolt
d6b5f540df
Add & test GraphState.from_json
We needed to implement `GraphState.from_json` so that the server can
track a copy of the client's state. That's a useful byproduct of this
work!
pirms 8 gadiem
Pete Shadbolt
f4631c552f
Fix #7 -- alias literal clifford.by_names
pirms 8 gadiem
Pete Shadbolt
05b12a7bf1
Removed `fancy.GraphState.from_nx` -- "just works"
Moved that functionality into `abp.GraphState`, so that you can
just run `state = abp.GraphState(nx.Graph(((0,1),)))`, `state =
abp.fancy.GraphState(nx.Graph(((0,1),))` or whatever.
pirms 8 gadiem
Pete Shadbolt
577e917732
More convenient networkx -> abp conversion
Now you can write `abp.fancy.GraphState(nx.Graph())`.
TODO: make this work for a non-fancy `GraphState`
pirms 8 gadiem
Pete Shadbolt
4b443d7d01
Purge `add_node`, add `add_qubit`
Trying to get more sensible defaults for people who like to think about
graphstates rather than circuits.
Repsponse to issue #4 : [Link](https://github.com/peteshadbolt/abp/issues/4 )
pirms 8 gadiem
Pete Shadbolt
bf22c0f5e7
Skip tests that depend on the original C++
I have written a tonne of tests that compare against A&B's original C++.
Until I can distribute the `anders_briegel` package which implements
that original code, we now skip those tests if we see an ImportError.
TODO: seems a little over-zealous right now ...
pirms 8 gadiem
Pete Shadbolt
3dbd70e046
Add and test `GraphState.to_stabilizer()` :rage4:
pirms 8 gadiem
Pete Shadbolt
b41cc7945d
Add better notation
pirms 8 gadiem
Pete Shadbolt
277f6a2d4f
PEP8
pirms 8 gadiem
Pete Shadbolt
775eea02bb
Add a couple more tests
pirms 8 gadiem
Pete Shadbolt
02b2f1f3c3
Various small requests from Mercedes
- `GraphState.copy()`
- `measure_x` etc.
- `measure(detail=True)`
- Better documentation on `remove_vop` and `act_local_rotation`
pirms 8 gadiem
Pete Shadbolt
ccabb2b7b5
Running Mercedes' example
pirms 8 gadiem
Pete Shadbolt
6107946244
Pratting with MANIFEST
pirms 8 gadiem
Pete Shadbolt
49478d4017
100% test passing :feelsgood:
Still need to "test the tests", but it's looking good.
pirms 8 gadiem
Pete Shadbolt
7016e75be6
Cleaner measurement testing
pirms 8 gadiem
Pete Shadbolt
b878528cce
Another one down
pirms 8 gadiem
Pete Shadbolt
4124405697
Starting to refactor tests against A&B
pirms 8 gadiem
Pete Shadbolt
88b99cc22a
Test passing, still need to do the nightmare
pirms 8 gadiem
Pete Shadbolt
55704d44a6
Better integration of `mock`
pirms 8 gadiem
Pete Shadbolt
d5e7e5d9b3
Better integration of ``mock``
pirms 8 gadiem
Pete Shadbolt
f6f6ccd08d
Still crunching thru tests
pirms 8 gadiem
Pete Shadbolt
3b6963c95e
Tidying tests
pirms 8 gadiem
Pete Shadbolt
9776d3e10a
Better mocking - not finished
pirms 8 gadiem
Pete Shadbolt
c7ae201fb2
Cleaning up tests -- not finished
pirms 8 gadiem
Pete Shadbolt
e9c75d01a9
Consolidate test settings
pirms 8 gadiem
Pete Shadbolt
b3ac940a17
Better naming
pirms 8 gadiem
Pete Shadbolt
140a9cd7ba
Very good! Tests pass :rage4: :gun:
Next up is just to clean those tests and replace the stupid
act_local_rotation2 with something legible.
pirms 8 gadiem
Pete Shadbolt
9bd4914cd2
Test passing
pirms 8 gadiem
Pete Shadbolt
2d18fd2f91
Small fix
pirms 8 gadiem
Pete Shadbolt
b1c4617398
Add test graphs
pirms 8 gadiem
Pete Shadbolt
6dfd43955b
Still not quite there
pirms 8 gadiem
Pete Shadbolt
6f7bcb05be
Add more tests
pirms 8 gadiem
Pete Shadbolt
a5789f6152
Fix nondeterministic error in measure_x
Looks like nondeterminism in `next(d.iterkeys())` was breaking
consistency with A&B. Next up: switching determinism on or off.
pirms 8 gadiem
Pete Shadbolt
c6384448e3
Fixed `GraphState.measure_y`
Had a dumb translation error
pirms 8 gadiem