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.

il y a 7 ans
il y a 5 ans
il y a 5 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
12345678910111213141516171819202122232425262728293031323334353637
  1. # abp 0.6.3
  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. ## Demo
  16. ![Demo video](doc/abp.mp4)
  17. ## Installation
  18. Install from source
  19. ```shell
  20. $ git clone http://gitlab.psiquantum.lan/pete/abp
  21. $ cd abp
  22. $ virtualenv env
  23. $ source env/bin/activate
  24. $ python setup.py develop
  25. ```
  26. ## Documentation
  27. You can read the full documentation [here](https://peteshadbolt.co.uk/static/abp/). You can also build it locally using Sphinx with `make doc`.
  28. 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`.