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

merge dev into master #27

Merged
merged 82 commits into from
Jul 21, 2023
Merged

merge dev into master #27

merged 82 commits into from
Jul 21, 2023

Commits on Apr 1, 2023

  1. 1. Optimized data convertion between python and cpp 2. Fixed set_num …

    …bug when initialized from statevector
    Zhaoyilunnn committed Apr 1, 2023
    Configuration menu
    Copy the full SHA
    617aed9 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2023

  1. Configuration menu
    Copy the full SHA
    b34b40a View commit details
    Browse the repository at this point in the history
  2. Merge pull request #11 from Zhaoyilunnn/master

    Optimize data copy from python to cpp
    lss0208 committed Apr 2, 2023
    Configuration menu
    Copy the full SHA
    5abb1a7 View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2023

  1. add GPU support

    lss0208 committed Apr 3, 2023
    Configuration menu
    Copy the full SHA
    ad5ef8c View commit details
    Browse the repository at this point in the history
  2. rm submodule

    lss0208 committed Apr 3, 2023
    Configuration menu
    Copy the full SHA
    62c759c View commit details
    Browse the repository at this point in the history
  3. add func doc

    lss0208 committed Apr 3, 2023
    Configuration menu
    Copy the full SHA
    23bfc07 View commit details
    Browse the repository at this point in the history
  4. fix exceptions

    lss0208 committed Apr 3, 2023
    Configuration menu
    Copy the full SHA
    470891e View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2023

  1. use unique_ptr

    lss0208 committed Apr 7, 2023
    Configuration menu
    Copy the full SHA
    e023a88 View commit details
    Browse the repository at this point in the history
  2. fix cmake

    lss0208 committed Apr 7, 2023
    Configuration menu
    Copy the full SHA
    fd26486 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2023

  1. 增加了dag

    fatboy1994 committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    0d9edcd View commit details
    Browse the repository at this point in the history
  2. Merge pull request #13 from fatboy1994/dev

    增加了dag
    YuChenSSR committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    0833790 View commit details
    Browse the repository at this point in the history
  3. add dag

    fatboy1994 committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    4a1c6bb View commit details
    Browse the repository at this point in the history
  4. Merge pull request #14 from fatboy1994/dev

    add dag
    YuChenSSR committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    8fe4697 View commit details
    Browse the repository at this point in the history
  5. add dag , modify the test book

    Co-authored-by: fatboy1994 <[email protected]>
    YuChenSSR and fatboy1994 committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    53b00a2 View commit details
    Browse the repository at this point in the history
  6. change the explaination

    YuChenSSR committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    8344afe View commit details
    Browse the repository at this point in the history
  7. Merge pull request #15 from fatboy1994/dev

    dag ; modify the test book for users
    YuChenSSR committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    4ac5486 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2023

  1. optimize base

    lss0208 committed Apr 25, 2023
    Configuration menu
    Copy the full SHA
    ce0d2f4 View commit details
    Browse the repository at this point in the history
  2. Merge branch dev

    lss0208 committed Apr 25, 2023
    Configuration menu
    Copy the full SHA
    83e6370 View commit details
    Browse the repository at this point in the history
  3. 优化了gate_to_node代码

    YuChenSSR committed Apr 25, 2023
    Configuration menu
    Copy the full SHA
    745b731 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #17 from YuChenSSR:dev

    Optimize gate_to_node code
    YuChenSSR committed Apr 25, 2023
    Configuration menu
    Copy the full SHA
    258c0e3 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2023

  1. add parser;modify pulse

    lss0208 committed Apr 27, 2023
    Configuration menu
    Copy the full SHA
    4c090c0 View commit details
    Browse the repository at this point in the history
  2. small fix

    lss0208 committed Apr 27, 2023
    Configuration menu
    Copy the full SHA
    a582cf7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    04d64d6 View commit details
    Browse the repository at this point in the history

Commits on May 6, 2023

  1. Configuration menu
    Copy the full SHA
    c593262 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #18 from YuChenSSR:dev

    Added parameters for the pulse gate
    YuChenSSR committed May 6, 2023
    Configuration menu
    Copy the full SHA
    81a35b5 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2023

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

Commits on Jun 7, 2023

  1. Configuration menu
    Copy the full SHA
    36887fe View commit details
    Browse the repository at this point in the history
  2. fix 0: parser error: TypeError: InstructionNode.__init__() missing 2 …

    …required positional arguments: 'time_func' and 'label'
    
    fix 1: add back from_openqasm
    Zhaoyilunnn committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    b4327d4 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2023

  1. Merge pull request #20 from Zhaoyilunnn/master

    1. Add runtime_job_id 2. Add back `from_openqasm` to ensure backward compatibility
    ScQ-Cloud committed Jun 8, 2023
    Configuration menu
    Copy the full SHA
    93edf5b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a32de95 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #24 from Zhaoyilunnn/master

    fix: default runtime_job_id should be empty string
    Zhaoyilunnn committed Jun 8, 2023
    Configuration menu
    Copy the full SHA
    9599f02 View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2023

  1. Configuration menu
    Copy the full SHA
    7c8a43a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4cdf2c5 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2023

  1. Add files via upload

    CircuitPlotManager has been implemented to support plotting the most commonly-used gates/instructions, with two simple examples uploaded. Please help to test whether it has no error integrating into dev-branch, for it was written firstly to work well with the odd version of pyquafu. Supports for other instructions, as well as more documentation and examples, will be added a little bit later. (线路绘图功能基本完成,稍加完善即可发布使用。请先测试与dev分支能够整合无误。使用说明文档和其余功能稍后添加。)
    chensgit169 committed Jul 2, 2023
    Configuration menu
    Copy the full SHA
    adbce89 View commit details
    Browse the repository at this point in the history
  2. Add files via upload

    reload for dir-path mistake...
    chensgit169 committed Jul 2, 2023
    Configuration menu
    Copy the full SHA
    a5b5c0b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1e14e8e View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2023

  1. Configuration menu
    Copy the full SHA
    878b729 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0c3b06f View commit details
    Browse the repository at this point in the history
  3. "optimized import in quantum_circuit.py"

    Some unused 'imports' were removed. And it's not suggested to use 'from xxx import *' to avoid namespace conflicts.
    chensgit169 committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    244e08d View commit details
    Browse the repository at this point in the history
  4. "add sxdg and related"

    Add SXdgGate to quantum_element.py, sxdg() to quantum_circuit.py and also counterparts for Y. Matrices were written explicitly as array of numpy, symbols were also given.
    chensgit169 committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    94515ca View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2023

  1. "add some user-friendly features"

    1. Use self.add_gates() to check out position range.
    2. Set default pos of barrier() to be None which means to act on all qubits.
    3. Integrate plot_circuit() from visualisation module.
    (Have tested by plotting.)
    chensgit169 committed Jul 6, 2023
    Configuration menu
    Copy the full SHA
    a59a82b View commit details
    Browse the repository at this point in the history
  2. "Separate element_gates.py"

    Outer access to element_gates remains the same for all gates have been imported in __init__.py
    chensgit169 committed Jul 6, 2023
    Configuration menu
    Copy the full SHA
    5c1f617 View commit details
    Browse the repository at this point in the history
  3. "Modify measure()"

    1. Now allows updating by several commands of .measure(pos, cbits) on different positions.
    2. Also allows to measure all qubits directly by measure()
    3. Add uniqueness check.
    chensgit169 committed Jul 6, 2023
    Configuration menu
    Copy the full SHA
    8e01805 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    dde1609 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4f63c22 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2023

  1. "ignore .pyd in git"

    chensgit169 committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    16572de View commit details
    Browse the repository at this point in the history
  2. "Add Superclass Instruction"

    And set a class attribute 'name' for the subclasses.
    chensgit169 committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    ec56ecb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    edade0c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    313dece View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    996fecd View commit details
    Browse the repository at this point in the history
  6. "Set name and matrix properties for Ins and Gates"

    Set 'name' as an abstract property for any abstract base class like Instruction and as a class attribute for concrete class like XGate. Some logic for adding `matrix` to QuantumCircuit and its subclasses. Matrices of gate-cls with paras are properties decorated by @Property, which update matrices automatically when parameters updated.
    chensgit169 committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    099082d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ed2655e View commit details
    Browse the repository at this point in the history
  8. "Fix the para-missing problem for rotation gate"

    Please help to test.
    chensgit169 committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    d1cba7e View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2023

  1. add unitary decomposer

    chensgit169 committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    c69a61d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ef4b7ca View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e3c5fdd View commit details
    Browse the repository at this point in the history
  4. open benchmark module

    With unitary decomposer test.
    chensgit169 committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    85faea1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c8e4810 View commit details
    Browse the repository at this point in the history
  6. small adjustment

    chensgit169 committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    3f7e737 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    1488317 View commit details
    Browse the repository at this point in the history
  8. add register mechanism for QuantumGate

    From now on you may look up all the available concrete gate class by:
    
    for name, cls in QuantumGate.gate_classes.items():
        print(name, cls.__name__)
    
    Similar mechanism is to be implemented for Instruction.
    chensgit169 committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    9b0adc3 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    47a085a View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    5963397 View commit details
    Browse the repository at this point in the history
  11. small fix

    chensgit169 committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    4394453 View commit details
    Browse the repository at this point in the history
  12. small fix

    chensgit169 committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    d621f10 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    35ec52c View commit details
    Browse the repository at this point in the history
  14. small adjustment

    chensgit169 committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    a55094d View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    cb6be26 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2023

  1. fix some problem during benchmarking

    Customized labeling of bits allowed, see new example adder.py for details.
    chensgit169 committed Jul 13, 2023
    Configuration menu
    Copy the full SHA
    11639de View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2023

  1. Configuration menu
    Copy the full SHA
    c2b0532 View commit details
    Browse the repository at this point in the history
  2. fix 2 known problem, add another testbench

    1. Use 'if xxx is not None' instead of 'if xxx'.
    2. Fix overlapping of parameter text on plot.
    chensgit169 committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    fd7a3ff View commit details
    Browse the repository at this point in the history
  3. fix 2 known problem, add another testbench

    1. Use 'if xxx is not None' instead of 'if xxx'.
    2. Fix overlapping of parameter text on plot.
    chensgit169 committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    59faa18 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2023

  1. Add iswap() and its plotting.

    Hopefully, plot_circuit now supports all the basic gates.
    chensgit169 committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    fe65df8 View commit details
    Browse the repository at this point in the history
  2. delete local example in visualisation

    Please add circuit examples into module 'benchmark'.
    chensgit169 committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    28f7022 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #26 from chensgit169/dev

    delete local example in visualisation
    Zhaoyilunnn committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    5c72e98 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2023

  1. update v0.3.0

    Zhaoyilunnn committed Jul 21, 2023
    Configuration menu
    Copy the full SHA
    1305073 View commit details
    Browse the repository at this point in the history
  2. Update __init__.py

    update version number into "0.3.0"
    chensgit169 committed Jul 21, 2023
    Configuration menu
    Copy the full SHA
    95ec9b4 View commit details
    Browse the repository at this point in the history
  3. Update deutsch_jozsa.py

    delete redundant lines
    chensgit169 committed Jul 21, 2023
    Configuration menu
    Copy the full SHA
    b9a9113 View commit details
    Browse the repository at this point in the history
  4. Update circuit_error.py

    add TODO
    chensgit169 committed Jul 21, 2023
    Configuration menu
    Copy the full SHA
    a8f2056 View commit details
    Browse the repository at this point in the history
  5. Delete dag.dot

    to be sent into documentation repository
    chensgit169 committed Jul 21, 2023
    Configuration menu
    Copy the full SHA
    18550dd View commit details
    Browse the repository at this point in the history
  6. Delete dag_test.ipynb

    to be sent into documentation repository
    chensgit169 committed Jul 21, 2023
    Configuration menu
    Copy the full SHA
    5a2e216 View commit details
    Browse the repository at this point in the history
  7. Delete dagcircuit_test.ipynb

    to be sent into documentation repository
    chensgit169 committed Jul 21, 2023
    Configuration menu
    Copy the full SHA
    c6403b5 View commit details
    Browse the repository at this point in the history