Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor builder #364

Merged
merged 95 commits into from
Aug 22, 2023
Merged

refactor builder #364

merged 95 commits into from
Aug 22, 2023

Commits on Aug 2, 2023

  1. refactor builder

    Roger-luo committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    238ff5b View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2023

  1. keep refactoring

    Roger-luo committed Aug 4, 2023
    Configuration menu
    Copy the full SHA
    13f6722 View commit details
    Browse the repository at this point in the history
  2. flatten works

    Roger-luo committed Aug 4, 2023
    Configuration menu
    Copy the full SHA
    1e6d54d View commit details
    Browse the repository at this point in the history
  3. cleanup

    Roger-luo committed Aug 4, 2023
    Configuration menu
    Copy the full SHA
    3f9de26 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    59cccc4 View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2023

  1. support device fn

    Roger-luo committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    752ef83 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f71fe0f View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2023

  1. Configuration menu
    Copy the full SHA
    6f0bae1 View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2023

  1. Configuration menu
    Copy the full SHA
    102d00a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fd8a2bc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5dd92ee View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    24081bc View commit details
    Browse the repository at this point in the history
  5. wrap up whatever I have

    Roger-luo committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    5dd4bc1 View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2023

  1. docstring.

    weinbe58 committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    cbfbe77 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2a10ff8 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2023

  1. Configuration menu
    Copy the full SHA
    72fa7bf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7ffac9e View commit details
    Browse the repository at this point in the history
  3. fix routing.

    weinbe58 committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    bdc5e51 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    967e0db View commit details
    Browse the repository at this point in the history
  5. stashing changes.

    weinbe58 committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    c558a48 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0acd268 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    9034624 View commit details
    Browse the repository at this point in the history
  8. stash

    weinbe58 committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    fae4ec0 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2f4cfb0 View commit details
    Browse the repository at this point in the history
  10. rename

    weinbe58 committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    e438102 View commit details
    Browse the repository at this point in the history
  11. fixing typo

    weinbe58 committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    1b3f618 View commit details
    Browse the repository at this point in the history
  12. adding unit tests for

    weinbe58 committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    4dfb09c View commit details
    Browse the repository at this point in the history
  13. rename class.

    weinbe58 committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    8a2cd50 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    efbc7d1 View commit details
    Browse the repository at this point in the history
  15. update dev

    weinbe58 committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    776c2ac View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    0fec268 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2023

  1. Configuration menu
    Copy the full SHA
    b803134 View commit details
    Browse the repository at this point in the history
  2. new compiler for sequence.

    weinbe58 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    021d1f6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0a5e86a View commit details
    Browse the repository at this point in the history
  4. removing main2.py

    weinbe58 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    93ee5c1 View commit details
    Browse the repository at this point in the history
  5. rename modules.

    weinbe58 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    1e0ab61 View commit details
    Browse the repository at this point in the history
  6. creating visitor for scalar AST, removing static_assign implement a…

    …ssign visitor for bloqade AST.
    weinbe58 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    c3fd6c4 View commit details
    Browse the repository at this point in the history
  7. adding canonicalization

    weinbe58 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    2343d48 View commit details
    Browse the repository at this point in the history
  8. reorder imports.

    weinbe58 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    a925392 View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2023

  1. Configuration menu
    Copy the full SHA
    3b7b556 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    137a838 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    14a652e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    88e1786 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8d76448 View commit details
    Browse the repository at this point in the history
  6. rename checkpoint to coeff

    weinbe58 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    625f18f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5322915 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    38a8990 View commit details
    Browse the repository at this point in the history
  9. task sketch.

    weinbe58 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    674a149 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2023

  1. Configuration menu
    Copy the full SHA
    09485f3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bc152c5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2495852 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7338e18 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d8ff7bd View commit details
    Browse the repository at this point in the history
  6. setting up compiler trait.

    weinbe58 committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    c72d431 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    512d3ac View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2023

  1. fixing imports

    weinbe58 committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    5381c92 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b9a6da5 View commit details
    Browse the repository at this point in the history
  3. adding compiler traits.

    weinbe58 committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    6d8b88a View commit details
    Browse the repository at this point in the history
  4. compiler pipeline

    weinbe58 committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    ed33618 View commit details
    Browse the repository at this point in the history
  5. adding ir caching option.

    weinbe58 committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    12d2eb3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d720348 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2023

  1. Configuration menu
    Copy the full SHA
    3af6c87 View commit details
    Browse the repository at this point in the history
  2. refactor base backend.

    weinbe58 committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    c6a7ec9 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2023

  1. Configuration menu
    Copy the full SHA
    0560d6a View commit details
    Browse the repository at this point in the history
  2. 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>
    4 people authored Aug 17, 2023
    Configuration menu
    Copy the full SHA
    488e857 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9b84a0a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c631174 View commit details
    Browse the repository at this point in the history
  5. keyword arg for parent

    weinbe58 committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    294ad09 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    72a6f7d View commit details
    Browse the repository at this point in the history
  7. sketching bug fix.

    weinbe58 committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    ec07fb3 View commit details
    Browse the repository at this point in the history
  8. fix static assign, and visit_register issue

    Kai-Hsin Wu authored and Kai-Hsin Wu committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    618a3c8 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    9fe128f View commit details
    Browse the repository at this point in the history
  10. tm

    Kai-Hsin Wu authored and Kai-Hsin Wu committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    930967c View commit details
    Browse the repository at this point in the history
  11. merge

    Kai-Hsin Wu authored and Kai-Hsin Wu committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    1bef659 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    db113b5 View commit details
    Browse the repository at this point in the history
  13. Merge branch 'roger/refactor-builder' of https://github.com/QuEraComp…

    …uting/bloqade-python into roger/refactor-builder
    Kai-Hsin Wu authored and Kai-Hsin Wu committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    e2602e6 View commit details
    Browse the repository at this point in the history
  14. remove redundant print

    Kai-Hsin Wu authored and Kai-Hsin Wu committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    5ec1ca1 View commit details
    Browse the repository at this point in the history
  15. fix bugs for batches

    Kai-Hsin Wu authored and Kai-Hsin Wu committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    109a119 View commit details
    Browse the repository at this point in the history
  16. update, fix bugs for report()

    Kai-Hsin Wu authored and Kai-Hsin Wu committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    86954dc View commit details
    Browse the repository at this point in the history
  17. fix bugs in waveform builder

    Kai-Hsin Wu authored and Kai-Hsin Wu committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    1084fb9 View commit details
    Browse the repository at this point in the history
  18. fix bugs with PythonFn waveform default kwargs. fix most of the testing

    Kai-Hsin Wu authored and Kai-Hsin Wu committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    76dcee4 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2023

  1. 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>
    3 people authored Aug 21, 2023
    Configuration menu
    Copy the full SHA
    73f382c View commit details
    Browse the repository at this point in the history
  2. adding serialization for batch. (#400)

    * adding serialization for batch.
    
    * adding missing object ot serialization.
    weinbe58 authored Aug 21, 2023
    Configuration menu
    Copy the full SHA
    aff408b View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2023

  1. update, fix bugs in naming _compile_taskdata, recover more tests

    Kai-Hsin Wu authored and Kai-Hsin Wu committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    6ba5f45 View commit details
    Browse the repository at this point in the history
  2. add load_batch + doc for tree_depth()

    Kai-Hsin Wu authored and Kai-Hsin Wu committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    bc7dfeb View commit details
    Browse the repository at this point in the history
  3. fix bugs in DefaultVariable should be Scalar not real, and member sho…

    …uld be Literal instead of Decimal.
    
    2) Fix PythonFn kwargs does not properly processed
    Kai-Hsin Wu authored and Kai-Hsin Wu committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    eb2428c View commit details
    Browse the repository at this point in the history
  4. fix backend api_config need to pass in with dereferences

    Kai-Hsin Wu authored and Kai-Hsin Wu committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    9f473a3 View commit details
    Browse the repository at this point in the history
  5. 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.
    weinbe58 authored Aug 22, 2023
    Configuration menu
    Copy the full SHA
    6467274 View commit details
    Browse the repository at this point in the history
  6. fix bug in static_assign visit Negative waveform feed in wrong ast

    Kai-Hsin Wu authored and Kai-Hsin Wu committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    22addb4 View commit details
    Browse the repository at this point in the history
  7. Merge branch 'roger/refactor-builder' into khwu/testing_v3

    Kai-Hsin Wu authored and Kai-Hsin Wu committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    759ea62 View commit details
    Browse the repository at this point in the history
  8. fixing tests

    Kai-Hsin Wu authored and Kai-Hsin Wu committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    a7d690f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    1ca24dc View commit details
    Browse the repository at this point in the history
  10. 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>
    weinbe58 and Kai-Hsin Wu authored Aug 22, 2023
    Configuration menu
    Copy the full SHA
    50fe7ab View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    d35c8b0 View commit details
    Browse the repository at this point in the history
  12. 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>
    3 people authored Aug 22, 2023
    Configuration menu
    Copy the full SHA
    d80b934 View commit details
    Browse the repository at this point in the history