Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor builder * keep refactoring * flatten works * cleanup * add a sketch of compile pipeline * support device fn * setup a basic lexer like codegen for builder * waveform and address is working * reexporting objects to `bloqade.ir` and `bloqade` * adding `BoundedBravais` and `ParallelRegister` to imports. * adding `create`/`copy` interface to `BuilderStream` * wrap up whatever I have * docstring. * renambing fields of pulse and sequence * implmenting compiler for pulse sequence. * fix routing. * adding better error messages for not implemented backends. * stashing changes. * adding `static_assign` functionality to scalars * moving from just kargs to storing parameters as Scalar variables. * stash * rename * fixing typo * adding unit tests for * rename class. * moving visitor methods for primatives. * update dev * new compiler for sequence. * removing main2.py * rename modules. * creating visitor for scalar AST, removing `static_assign` implement assign visitor for bloqade AST. * adding canonicalization * reorder imports. * adding match arguments and serializers * adding JSON serialization for Scalar IR. * moving ir compiler into compiler subpackage * creating stream submodule and json submodule. * adding Sample node for builder. * rename `checkpoint` to `coeff` * adding json compiler for waveforms. * adding json encoder for builder. * task sketch. * adding `apply` builder method for sequence objects. * adding explicit check for `Waveform` type. * adding serialization for builder + BloqadeIR * fixing parallelize option for submit/flatten routes. * commenting out old compiler. Adding register compiler * setting up compiler trait. * fixing compiler after refactoring circular imports * fixing imports * adding JSON compiler to builder. * adding compiler traits. * compiler pipeline * adding ir caching option. * updating caching to happen at all levels of bloqade-IR * adding deserialization for bloqade-IR * refactor base backend. * finished draft implementation of serializer/deserializer * Khwu/refactor task (#391) * update, finished hardware tasl * relocate Geometry, isolcate deps * fix bug on Report * update, change status behavior to request call. fix submit order does not shuffle in OrderDict * add repr for Batch * rename submit as resubmit * finished restructure of Task/Batch * update, finished bridge for task<->builder v2 * update, add simple docs * fix namespace conflict in backend * fix bug in RemoteBackend * adding option for caching compiled programs in backends. --------- Co-authored-by: Kai-Hsin Wu <khwu@KHWus-MacBook-Pro.local> Co-authored-by: Kai-Hsin Wu <khwu@KHWus-MBP.hsd1.ma.comcast.net> Co-authored-by: Phillip Weinberg <weinbe58@gmail.com> * removing shots from options for backends. * keyword arg for `parent` * missing impl for static assignment on register IR objects. * sketching bug fix. * fix static assign, and visit_register issue * fixing builder compiler to blqoade IR * tm * fixing another bug in builder compiler. * remove redundant print * fix bugs for batches * update, fix bugs for report() * fix bugs in waveform builder * fix bugs with PythonFn waveform default kwargs. fix most of the testing * Khwu/rename (#399) * rename * remove factory * temporary add assert to make test_quera_internal_api fail * fixing bugs in test. * fix bugs in incomplete LocalTask/ LocalBatch. Fix report for LocalBatch * change constrain of scale to Union[Real,str,Scalar]. 2. compile visiting of record node, replace Variable(name) with cast(name) 3. fix tests cases for test_program_visitor. 4. add location method for scale * more testing case * mask coverage for deprecated codes builder_old/ task_old/ * add get_tasks/remove_tasks with status codes * merging on github. (#396) * updating program definition. refactor compiler * going back to old arg parser. * adding error messages for flatten. * refactor builder. * moving builder to builder_old * moving builder2 to builder * moving task to task_old * moving task2 to task * fixing directory * tmp save * commented cache_compiled_program * finished refactor on bridge using schemaCompiler * starting serialization of task * finished serialization * fixing bugs. * fixing braket local emulator. * removing test call * fixing some tests * fixing interface for backends. --------- Co-authored-by: Kai-Hsin Wu <khwu@KHWus-MBP.hsd1.ma.comcast.net> Co-authored-by: Kai-Hsin Wu <khwu@KHWus-MacBook-Pro.local> * adding serialization for batch. (#400) * adding serialization for batch. * adding missing object ot serialization. * update, fix bugs in naming _compile_taskdata, recover more tests * add load_batch + doc for tree_depth() * fix bugs in DefaultVariable should be Scalar not real, and member should be Literal instead of Decimal. 2) Fix PythonFn kwargs does not properly processed * fix backend api_config need to pass in with dereferences * Phil/save load batch (#404) * adding serialization for batch. * adding missing object ot serialization. * adding save and load functions for batch objects. * removing dict dispatching. * fix bug in static_assign visit Negative waveform feed in wrong ast * fixing tests * fixing issue with pattern matching with `Poly` * Khwu/testing v3 (#408) * test +6 * 1) add checking for batch_assign lengths. 2) more tests recover, * update, add trait BatchAssignable * test +1, fix bug in load_batch * adding fix to parser to account for `Sample` builder node. * fix test case for mod/ DefaultVariable * fix covergerc wrong format * ocmply ruff * fixing last tests. --------- CI is now passing for builder refactor Co-authored-by: Kai-Hsin Wu <khwu@KHWus-MBP.hsd1.ma.comcast.net> * Khwu/testing v4 (#409) * test +6 * 1) add checking for batch_assign lengths. 2) more tests recover, * update, add trait BatchAssignable * test +1, fix bug in load_batch * adding fix to parser to account for `Sample` builder node. * fix test case for mod/ DefaultVariable * fix covergerc wrong format * ocmply ruff * add more tests * add missing __init__.py for builder/compile to comply with doc builder --------- Co-authored-by: Kai-Hsin Wu <khwu@KHWus-MBP.hsd1.ma.comcast.net> Co-authored-by: Phillip Weinberg <weinbe58@gmail.com> --------- Co-authored-by: Phillip Weinberg <weinbe58@gmail.com> Co-authored-by: Kai-Hsin Wu <kaihsinwu@gmail.com> Co-authored-by: Kai-Hsin Wu <khwu@KHWus-MacBook-Pro.local> Co-authored-by: Kai-Hsin Wu <khwu@KHWus-MBP.hsd1.ma.comcast.net>
- Loading branch information