Anders and Briegel in Python
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

README.md 1002B

il y a 7 ans
il y a 5 ans
il y a 5 ans
il y a 7 ans
il y a 7 ans
il y a 5 ans
il y a 7 ans
il y a 5 ans
il y a 7 ans
il y a 5 ans
il y a 5 ans
il y a 7 ans
il y a 5 ans
1234567891011121314151617181920212223242526272829303132333435
  1. # abp 0.6.1
  2. Python port of Anders and Briegel' s [method](https://arxiv.org/abs/quant-ph/0504117) for fast simulation of Clifford circuits.
  3. ## Usage
  4. ```python
  5. import abp
  6. from abp.util import xyz
  7. g = abp.GraphState()
  8. g.add_qubit("alice", position=xyz(0, 0, 0))
  9. g.add_qubit("bob", position=xyz(0, 0, 0))
  10. g.act_hadamard("alice")
  11. g.act_hadamard("bob")
  12. g.act_cz("alice", "bob")
  13. g.push() # Sends for visualization
  14. ```
  15. ![Video demo](doc/abp.mp4)
  16. ## Installation
  17. Install from source
  18. ```shell
  19. $ git clone http://gitlab.psiquantum.lan/pete/abp
  20. $ cd abp
  21. $ virtualenv env
  22. $ source env/bin/activate
  23. $ python setup.py develop
  24. ```
  25. ## Documentation
  26. You can read the full documentation [here](https://peteshadbolt.co.uk/static/abp/). You can also build it locally using Sphinx with `make doc`.
  27. To install Sphinx on OSX, use `pip install sphinx`. If after doing so `make doc` still does not work, some OSX users may also need to install `sphinxcontrib-napoleon` by running `pip install sphinxcontrib-napoleon`.