Skip to content

FlamingPy Release 0.10.1b1

Pre-release
Pre-release
Compare
Choose a tag to compare
@nariman87 nariman87 released this 31 Aug 01:53
256583b

New features since the last release

  • Add is_lc_equivalent method to the EGraph class to check if two EGraphs are equivalent under local complementation, as well as related linear algebra helper functions inside utils\linalg.py. #89, #117 (backward compatible)
  • Add functions add_qubit and remove_qubit to the EGraph class, which allow adding and removing nodes of the EGraph while updating internal attributes of the class. #100 (backward compatible)
  • Added Plotly backend for visualizing graph states. #103
  • The I/O of frontend simulations.py has been improved. The input has been simplified to an intuitive set of code, code_args, noise, and noise_args. As long as those combinations are valid, FlamingPy will run simulations and automatically set up the output file based on the input. #111 (backward incompatible)
    • An example run will be
      python flamingpy/simulations.py -code "SurfaceCode" -code_args "{'distance':3, 'ec':'primal', 'boundaries':'open'}" -noise "CVLayer" -noise_args "{'delta':0.09, 'p_swap':0.25}" -decoder "MWPM" -decoder_args "{'weight_opts':{'method':'blueprint', 'integer':False, 'multiplier':1, 'delta':0.09}}" -trials 100
      
      which generates
      code,distance,ec,boundaries,noise,delta,p_swap,decoder,weight_opts,errors,trials,current_time,simulation_time,mpi_size
      SurfaceCode,3,primal,open,CVLayer,0.09,0.25,MWPM,{'method': 'blueprint', 'integer': False, 'multiplier': 1, 'delta': 0.09},10,100,00:15:50,0.370795,1
      
  • Users can now install FlamingPy from git with pip. This also means installing through python setup.py egg_info is now valid. #118 (backward compatible)

Bug fixes

  • dev_requirements was updated with the latest version of docformatter to prevent failing unit tests. #116

Improvements

  • Cython example code, cpp_mc_loop.pyx, and its installation instructions were removed from everywhere as it was unused. New developers can refer to historic commits to help add new Cython files. #119

Documentation changes

  • give_for_devs.rst was updated to match the latest dev_requirements file and deletion of the Cython example. #116, #119

Contributors

This release contains contributions from (in alphabetical order):

Joost Bus, Luis Mantilla, Avhijit Nair, Nariman Saadatmand, smtsjhr, Ilan Tzitrin

See full commit details here.