Skip to content

Commit bdc6f4c

Browse files
committed
Merge remote-tracking branch 'origin/master' into eqnn_forcefield_qjit
2 parents bbd9221 + 07bccd4 commit bdc6f4c

File tree

393 files changed

+8564
-3010
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

393 files changed

+8564
-3010
lines changed

.github/workflows/artifacts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
runs-on: ubuntu-latest
77
name: Run CircleCI artifacts redirector
88
steps:
9-
- uses: actions/checkout@v1
9+
- uses: actions/checkout@v4
1010

1111
- name: Get artifact URL
1212
id: getArtifact

.github/workflows/demo_diff_check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
with:
1616
access_token: ${{ github.token }}
1717

18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1919
with:
2020
ref: dev
2121

@@ -84,7 +84,7 @@ jobs:
8484
with:
8585
access_token: ${{ github.token }}
8686

87-
- uses: actions/checkout@v2
87+
- uses: actions/checkout@v4
8888
with:
8989
ref: master
9090

@@ -147,7 +147,7 @@ jobs:
147147
runs-on: ubuntu-latest
148148
needs: [build-dev, build-master]
149149
steps:
150-
- uses: actions/checkout@v2
150+
- uses: actions/checkout@v4
151151
with:
152152
# We checkout a dedicated unprotected branch and store the output of
153153
# the checker there

.github/workflows/deploy-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
steps:
1414
# Needed to Built pennylane.ai-react
1515
- name: Setup Node
16-
uses: actions/setup-node@v3
16+
uses: actions/setup-node@v4
1717
with:
18-
node-version: 18
18+
node-version: 20
1919

2020
- name: Download Build Context
2121
uses: XanaduAI/cloud-actions/download-github-workflow-artifact@main

.github/workflows/update-dev.yml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,30 @@ jobs:
2626
2727
steps:
2828
- name: Checkout
29-
uses: actions/checkout@v1
29+
uses: actions/checkout@v4
30+
with:
31+
token: ${{ secrets.NIGHTLY_TOKEN }}
32+
fetch-depth: 0 # We want entire git-history to avoid any merge conflicts
3033

3134
- name: Nightly Merge
32-
uses: robotology/gh-action-nightly-merge@v1.3.3
33-
with:
34-
stable_branch: 'master'
35-
development_branch: 'dev'
36-
allow_ff: false
3735
env:
38-
GITHUB_TOKEN: ${{ secrets.NIGHTLY_TOKEN }}
36+
CONFIG_USERNAME: GitHub Nightly Merge Action
37+
CONFIG_EMAIL: actions@github.com
38+
MERGE_HEAD: master
39+
MERGE_BASE: dev
40+
MERGE_ARGS: --no-ff --allow-unrelated-histories --no-edit
41+
run: |
42+
# This script is adapted from the robotology/gh-action-nightly-merge@v1.5.2 GitHub action:
43+
# https://github.com/robotology/gh-action-nightly-merge/blob/master/entrypoint.sh
44+
45+
git config --global user.name "$CONFIG_USERNAME"
46+
git config --global user.email "$CONFIG_EMAIL"
47+
48+
git fetch origin $MERGE_HEAD
49+
(git checkout $MERGE_HEAD && git pull origin $MERGE_HEAD)
50+
51+
git fetch origin $MERGE_BASE
52+
(git checkout $MERGE_BASE && git pull origin $MERGE_BASE)
53+
54+
git merge $MERGE_ARGS $MERGE_HEAD
55+
git push origin $MERGE_BASE

.github/workflows/upload-json.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454

5555
steps:
5656
- name: Checkout
57-
uses: actions/checkout@v3
57+
uses: actions/checkout@v4
5858
with:
5959
ref: ${{ inputs.branch }}
6060
fetch-depth: 1

.github/workflows/upload-text.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
steps:
4040
- name: Checkout
41-
uses: actions/checkout@v3
41+
uses: actions/checkout@v4
4242
with:
4343
ref: ${{ inputs.branch }}
4444
fetch-depth: 1
@@ -51,11 +51,21 @@ jobs:
5151
path: qml_text
5252

5353
- name: Copy Concatenated Metadata into Build
54-
run: >
55-
jq -s .
56-
$(find demonstrations -name "*.metadata.json" -type f
57-
! -name "demonstrations_categories.metadata.json")
58-
> ${{ steps.qml_text.outputs.download-path }}/demos/metadata.json
54+
run: |
55+
tmp_metadata_json=$(mktemp)
56+
out_metadata_json=${{ steps.qml_text.outputs.download-path }}/demos/metadata.json
57+
58+
filepaths=$(
59+
find demonstrations -name "*.metadata.json" -type f \
60+
! -name "demonstrations_categories.metadata.json" \
61+
)
62+
63+
for filepath in $filepaths; do
64+
slug=$(basename $filepath .metadata.json)
65+
jq ". += {\"slug\": \"$slug\"}" < $filepath >> $tmp_metadata_json
66+
done
67+
68+
jq --slurp --sort-keys . < $tmp_metadata_json > $out_metadata_json
5969
6070
- name: Upload
6171
uses: XanaduAI/cloud-actions/push-to-s3-and-invalidate-cloudfront@main

.github/workflows/validate-demo-metadata.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
steps:
3232
- name: Checkout
33-
uses: actions/checkout@v3
33+
uses: actions/checkout@v4
3434
with:
3535
fetch-depth: 1
3636
ref: ${{ inputs.branch }}
@@ -74,7 +74,7 @@ jobs:
7474

7575
steps:
7676
- name: Checkout
77-
uses: actions/checkout@v3
77+
uses: actions/checkout@v4
7878
with:
7979
fetch-depth: 1
8080
ref: ${{ inputs.branch }}
@@ -101,7 +101,7 @@ jobs:
101101
METADATA_FILE_LIST: ${{ needs.generate-metadata-file-list.outputs.metadata_files }}
102102
run: |
103103
cd metadata_schemas
104-
${{ steps.poetry.outputs.bin }} run check-jsonschema -v --traceback-mode full --schemafile demo.metadata.schema.0.1.1.json $METADATA_FILE_LIST
104+
${{ steps.poetry.outputs.bin }} run check-jsonschema -v --traceback-mode full --schemafile demo.metadata.schema.0.1.5.json $METADATA_FILE_LIST
105105
106106
validate-metadata-preview-images:
107107
runs-on: ubuntu-latest
@@ -113,7 +113,7 @@ jobs:
113113

114114
steps:
115115
- name: Checkout
116-
uses: actions/checkout@v3
116+
uses: actions/checkout@v4
117117
with:
118118
fetch-depth: 1
119119
ref: ${{ inputs.branch }}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ environment:
7676
$$PYTHON_VENV_PATH/bin/python -m pip install --upgrade git+https://github.com/PennyLaneAI/pennylane-cirq.git#egg=pennylane-cirq;\
7777
$$PYTHON_VENV_PATH/bin/python -m pip install --upgrade git+https://github.com/PennyLaneAI/pennylane-qiskit.git#egg=pennylane-qiskit;\
7878
$$PYTHON_VENV_PATH/bin/python -m pip install --upgrade git+https://github.com/PennyLaneAI/pennylane-qulacs.git#egg=pennylane-qulacs;\
79-
$$PYTHON_VENV_PATH/bin/python -m pip install --extra-index-url https://test.pypi.org/simple/ PennyLane-Lightning --pre --upgrade;\
8079
$$PYTHON_VENV_PATH/bin/python -m pip install --extra-index-url https://test.pypi.org/simple/ PennyLane-Catalyst --pre --upgrade;\
80+
$$PYTHON_VENV_PATH/bin/python -m pip install --extra-index-url https://test.pypi.org/simple/ PennyLane-Lightning --pre --upgrade;\
8181
$$PYTHON_VENV_PATH/bin/python -m pip install --upgrade git+https://github.com/PennyLaneAI/pennylane.git#egg=pennylane;\
8282
fi;\
8383
fi

_static/authors/elaina_zhu.jpeg

412 KB

_static/authors/elaina_zhu.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. bio:: Elaina Zhu
2+
:photo: ../_static/authors/elaina_zhu.jpeg
3+
4+
Elaina is a undergraduate student at Oxford University, interning at CQT. She is interested in research in the intersection of quantum technologies and computer science.

0 commit comments

Comments
 (0)