Pete Shadbolt
a891510398
Merge
6 роки тому
Pete Shadbolt
8b87991ea5
Ported to Python3 on a goddam phone
6 роки тому
Pete Shadbolt
fc92ce3747
Add shorthand function to run multiple CZs.
7 роки тому
Pete Shadbolt
9fae542174
Working on removing fancy.py
7 роки тому
Pete Shadbolt
6250fbc0d0
PEP compliance
7 роки тому
Pete Shadbolt
cd589612b2
Move DETERMINISTIC to a library setting
7 роки тому
Pete Shadbolt
0c7d9c0435
Small docstring update
7 роки тому
Pete Shadbolt
9ab83c46ac
Fix up some docstrings
7 роки тому
Pete Shadbolt
b58079172d
Working on syntactic sugar and docs simultaneously
7 роки тому
Pete Shadbolt
329cbe70e3
PEP8
7 роки тому
Pete Shadbolt
e5ad12cdb1
Reduced node-already-exists to a warning
7 роки тому
Pete Shadbolt
37dd9265ce
Can now sketchily delete nodes. Needs work.
7 роки тому
Pete Shadbolt
352a1d4325
`add_node` is a constant annoyance :rage4:
NetworkX provides `add_node`, we don't, leads to missing
`graph.node["vop"]`. Does this fix it?
7 роки тому
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!
7 роки тому
Sam Morley-Short
10860e2066
measure_sequence now working, was not in develop mode :baby:
7 роки тому
Sam Morley-Short
9377249675
measure_sequences added, not yet working
7 роки тому
Pete Shadbolt
15848d34bd
Remove redundant debug option
`prefix` was used for testing against original implementation
7 роки тому
Pete Shadbolt
110312a897
Suggested fix to `friend` issue
7 роки тому
Pete Shadbolt
f4631c552f
Fix #7 -- alias literal clifford.by_names
7 роки тому
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.
7 роки тому
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 )
7 роки тому
Pete Shadbolt
8337af0c7e
Even nicer stabilizer tables
7 роки тому
Pete Shadbolt
a9e17c5fef
Nicer stabilizer tables
7 роки тому
Pete Shadbolt
c4c33f0466
Improving docs
7 роки тому
Pete Shadbolt
75730f954b
Add examples/visualization/auto_layout.py
7 роки тому
Pete Shadbolt
c8992ce42d
Update documentation :book:
7 роки тому
Pete Shadbolt
835c0679bd
Document GraphState
7 роки тому
Pete Shadbolt
3dbd70e046
Add and test `GraphState.to_stabilizer()` :rage4:
7 роки тому
Pete Shadbolt
552d8576ed
Adding stabilizers
7 роки тому
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`
7 роки тому
Pete Shadbolt
ccabb2b7b5
Running Mercedes' example
7 роки тому
Pete Shadbolt
b88341a91b
Makefiles
7 роки тому
Pete Shadbolt
2126ae219f
Better docs
7 роки тому
Pete Shadbolt
9776d3e10a
Better mocking - not finished
7 роки тому
Pete Shadbolt
102c456c53
PEP8
7 роки тому
Pete Shadbolt
c7ae201fb2
Cleaning up tests -- not finished
7 роки тому
Pete Shadbolt
0b6e1783c0
Better documentation
7 роки тому
Pete Shadbolt
b3ac940a17
Better naming
7 роки тому
Pete Shadbolt
9bd4914cd2
Test passing
7 роки тому
Pete Shadbolt
cd8bc01907
Test passing
7 роки тому
Pete Shadbolt
2d18fd2f91
Small fix
7 роки тому
Pete Shadbolt
6f7bcb05be
Add more tests
7 роки тому
Pete Shadbolt
126c819d2c
Add pics
7 роки тому
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.
7 роки тому
Pete Shadbolt
c6384448e3
Fixed `GraphState.measure_y`
Had a dumb translation error
7 роки тому
Pete Shadbolt
784f9d27dc
Add simple tests
7 роки тому
Pete Shadbolt
b066129c42
Nicer pretty-printing
7 роки тому
Pete Shadbolt
0229de062b
Very test passing
7 роки тому
Pete Shadbolt
9623abfa10
Think I just did something right
7 роки тому
Pete Shadbolt
1cb6a3b3c9
All single-qubit tests are now passing :rage3:
7 роки тому