Skip to content
Closed

Dev #665

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
208f2f2
Rename notebook: hamiltonian simulation guide
classiqdor Dec 12, 2024
1bbf05a
Rename notebook: hamiltonian evolution
classiqdor Dec 12, 2024
8ce9ec8
Rename notebook: exponentiation example
classiqdor Dec 12, 2024
f66d2ff
Rename notebook: hhl example
classiqdor Dec 12, 2024
a990335
Rename notebook: application option pricing
classiqdor Dec 12, 2024
8138e8b
Rename notebook: example prepare state
classiqdor Dec 12, 2024
7973caa
Fix rename
classiqdor Dec 12, 2024
dfbbf7c
Add test for unique notebook names
classiqdor Dec 12, 2024
12d12f8
Update timeouts to be relative paths
classiqdor Dec 12, 2024
f67b063
Update test to test for relative paths
classiqdor Dec 12, 2024
05052b0
Fix
classiqdor Dec 12, 2024
dea56bf
Update error message
classiqdor Dec 12, 2024
6efd396
Allow functions qmods to have duplicates
classiqdor Dec 12, 2024
c43c28b
changed dqi notebook name
orsa-classiq Dec 15, 2024
4741165
refactored set_partition, max_clique, ilp, ising
orsa-classiq Dec 8, 2024
0206d63
removed knapsack binary notebook
orsa-classiq Dec 8, 2024
bcc9122
with max_k_vertex_cover
orsa-classiq Dec 8, 2024
52891f1
updated notebooks accord\ing to CR comments and new CombiProblem inte…
orsa-classiq Dec 16, 2024
9e6d990
updated timeouts
orsa-classiq Dec 16, 2024
cf51713
with portfolio optimization as well
orsa-classiq Dec 16, 2024
b9c7099
fixed failing notebooks
orsa-classiq Dec 16, 2024
f120365
Fix imports
ori-opher Dec 16, 2024
3756bc9
Update qmods
OriRothClassiq Dec 17, 2024
198ab50
Update qmods
OriRothClassiq Dec 17, 2024
55ad73a
added missing timeouts
orsa-classiq Dec 18, 2024
f44a2e4
Update dqi Qmod
OriRothClassiq Dec 18, 2024
f5de9ca
adjusted integer using notebooks
orsa-classiq Dec 18, 2024
bdc84d8
test commit
orsa-classiq Dec 19, 2024
3be6161
Fix file rename
classiqdor Dec 19, 2024
a5c46dc
adding SKEAPED_URLS list
Dec 19, 2024
f624118
delete outdated note (also required to match the suggested solution)
Dec 17, 2024
2d49741
delete unnecesarry note
Dec 17, 2024
e212004
delete outdated hint
Dec 17, 2024
48e35ff
fix probabilities to sum up to 1
Dec 17, 2024
01ac7b1
Made suggestions for the English
AnnePicus Dec 19, 2024
ede2fc2
updating notebook and tests requirements
Dec 22, 2024
36d4119
fixed control with variable in both arguments issue
orsa-classiq Dec 24, 2024
a0fa141
English suggestions to Introducing Quantum Functions with Quantum Mon…
AnnePicus Dec 24, 2024
cbf14ed
Added the time-marching differential equations solver example
orsa-classiq Dec 25, 2024
e40e60d
added missing timeouts
orsa-classiq Dec 25, 2024
663d2e6
time marching latex fix
orsa-classiq Dec 26, 2024
441cc09
Rename notebook: hamiltonian simulation guide
classiqdor Dec 12, 2024
c9922cc
Rename notebook: exponentiation example
classiqdor Dec 12, 2024
c8246ba
Rename notebook: hhl example
classiqdor Dec 12, 2024
3e60a29
Rename notebook: application option pricing
classiqdor Dec 12, 2024
1e8aff0
Rename notebook: example prepare state
classiqdor Dec 12, 2024
bcdceac
Fix rename
classiqdor Dec 12, 2024
130580d
Add test for unique notebook names
classiqdor Dec 12, 2024
59af213
Update timeouts to be relative paths
classiqdor Dec 12, 2024
c716be7
Fix
classiqdor Dec 12, 2024
5436727
Update error message
classiqdor Dec 12, 2024
9777e72
Allow functions qmods to have duplicates
classiqdor Dec 12, 2024
8eeeffc
updated timeouts
orsa-classiq Dec 16, 2024
beba53a
fixed failing notebooks
orsa-classiq Dec 16, 2024
fe7c4a8
Use latest pre-release classiq version
shahakL Dec 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/Internal-automatic-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ on:
jobs:
deploy-prod:
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'
uses: ./.github/workflows/deployment-qmod.yml
uses: ./.github/workflows/Utils-deployment-qmod.yml
with:
deploy-mode: production
secrets: inherit

deploy-dev:
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'dev'
uses: ./.github/workflows/deployment-qmod.yml
uses: ./.github/workflows/Utils-deployment-qmod.yml
with:
deploy-mode: staging
secrets: inherit
31 changes: 24 additions & 7 deletions .github/workflows/Test-CI-dev-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@ jobs:
- name: Debug
run: git status

- name: Install dependencies
run: |
set -e
python -m pip install -U pip
python -m pip install --extra-index-url https://pypi.org/simple --pre -U -r requirements.txt
python -m pip install --extra-index-url https://pypi.org/simple -U -r requirements_tests.txt

# Configure AWS credentials
- name: Configure AWS Credentials
uses: aws-actions/[email protected]
Expand All @@ -47,6 +40,30 @@ jobs:
aws-region: us-east-1
mask-aws-account-id: true

- name: Install dependencies
run: |
set -e
python -m pip install -U pip \
--extra-index-url https://pypi.org/simple
# Install "classiq" separately
export CODEARTIFACT_AUTH_TOKEN="$( \
aws codeartifact get-authorization-token \
--domain ${{ secrets.CODEARTIFACT_DOMAIN }} \
--domain-owner ${{ secrets.CODEARTIFACT_OWNER }} \
--region ${{ secrets.CODEARTIFACT_REGION }} \
--query authorizationToken \
--output text \
)"
python -m pip install -U --pre \
--extra-index-url "https://aws:$CODEARTIFACT_AUTH_TOKEN@${{ secrets.CODEARTIFACT_DOMAIN }}-${{ secrets.CODEARTIFACT_OWNER }}.d.codeartifact.${{ secrets.CODEARTIFACT_REGION }}.amazonaws.com/pypi/${{ secrets.PYPI_NIGHTLY_NAME }}/simple/" \
--extra-index-url https://pypi.org/simple \
classiq
# Install everything from the requirements, other than "classiq".
python -m pip install -U $(grep -ivE "classiq" requirements.txt) \
--extra-index-url https://pypi.org/simple
python -m pip install -U -r requirements_tests.txt \
--extra-index-url https://pypi.org/simple

# Set authentication with M2M token
- name: Set authentication
run: .github/scripts/get_m2m_token.sh
Expand Down
33 changes: 24 additions & 9 deletions .github/workflows/Test-CI-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,6 @@ jobs:
with:
python-version: "3.11"

- name: Install dependencies
if: steps.cache-pip.outputs.cache-hit != 'true'
run: |
set -e
python -m pip install -U pip
# The `--pre` allows the installation of pre-release versions of packages (needed for Dev)
python -m pip install --extra-index-url https://pypi.org/simple --pre -U -r requirements.txt
python -m pip install --extra-index-url https://pypi.org/simple -U -r requirements_tests.txt

#
# Setup Environment
#
Expand All @@ -101,6 +92,30 @@ jobs:
aws-region: us-east-1
mask-aws-account-id: true

- name: Install dependencies
run: |
set -e
python -m pip install -U pip \
--extra-index-url https://pypi.org/simple
# Install "classiq" separately
export CODEARTIFACT_AUTH_TOKEN="$( \
aws codeartifact get-authorization-token \
--domain ${{ secrets.CODEARTIFACT_DOMAIN }} \
--domain-owner ${{ secrets.CODEARTIFACT_OWNER }} \
--region ${{ secrets.CODEARTIFACT_REGION }} \
--query authorizationToken \
--output text \
)"
python -m pip install -U --pre \
--extra-index-url "https://aws:$CODEARTIFACT_AUTH_TOKEN@${{ secrets.CODEARTIFACT_DOMAIN }}-${{ secrets.CODEARTIFACT_OWNER }}.d.codeartifact.${{ secrets.CODEARTIFACT_REGION }}.amazonaws.com/pypi/${{ secrets.PYPI_NIGHTLY_NAME }}/simple/" \
--extra-index-url https://pypi.org/simple \
classiq
# Install everything from the requirements, other than "classiq".
python -m pip install -U $(grep -ivE "classiq" requirements.txt) \
--extra-index-url https://pypi.org/simple
python -m pip install -U -r requirements_tests.txt \
--extra-index-url https://pypi.org/simple

# Set authentication with M2M token
- name: Set authentication
run: .github/scripts/get_m2m_token.sh
Expand Down
12 changes: 4 additions & 8 deletions algorithms/algebraic/hidden_shift/hidden_shift.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@
{
"name": "stdout",
"output_type": "stream",
"text": [
""
]
"text": []
}
],
"source": [
Expand Down Expand Up @@ -253,8 +251,7 @@
"output_type": "stream",
"text": [
"f_dual: (((((((((x[5]) & (y[0])) ^ ((x[2]) & (y[1]))) ^ ((x[7]) & (y[2]))) ^ ((x[0]) & (y[3]))) ^ ((x[6]) & (y[4]))) ^ ((x[3]) & (y[5]))) ^ ((x[1]) & (y[6]))) ^ ((x[4]) & (y[7]))) ^ ((((((((x[5]) & (x[2])) & (x[7])) & (x[0])) & (x[6])) & (x[3])) & (x[1])) & (x[4]))\n",
"g: (((((((((x[0]) & (y[3])) ^ (((x[1]) ^ 1) & (y[6]))) ^ ((x[2]) & ((y[1]) ^ 1))) ^ (((x[3]) ^ 1) & (y[5]))) ^ ((x[4]) & (y[7]))) ^ ((x[5]) & (y[0]))) ^ ((x[6]) & (y[4]))) ^ ((x[7]) & (y[2]))) ^ ((((((((y[0]) & ((y[1]) ^ 1)) & (y[2])) & (y[3])) & (y[4])) & (y[5])) & (y[6])) & (y[7]))\n",
""
"g: (((((((((x[0]) & (y[3])) ^ (((x[1]) ^ 1) & (y[6]))) ^ ((x[2]) & ((y[1]) ^ 1))) ^ (((x[3]) ^ 1) & (y[5]))) ^ ((x[4]) & (y[7]))) ^ ((x[5]) & (y[0]))) ^ ((x[6]) & (y[4]))) ^ ((x[7]) & (y[2]))) ^ ((((((((y[0]) & ((y[1]) ^ 1)) & (y[2])) & (y[3])) & (y[4])) & (y[5])) & (y[6])) & (y[7]))\n"
]
}
],
Expand Down Expand Up @@ -389,8 +386,7 @@
"output_type": "stream",
"text": [
"f: (((((((((x[0]) & (y[3])) ^ ((x[1]) & (y[6]))) ^ ((x[2]) & (y[1]))) ^ ((x[3]) & (y[5]))) ^ ((x[4]) & (y[7]))) ^ ((x[5]) & (y[0]))) ^ ((x[6]) & (y[4]))) ^ ((x[7]) & (y[2]))) ^ ((((((((y[0]) & (y[1])) & (y[2])) & (y[3])) & (y[4])) & (y[5])) & (y[6])) & (y[7]))\n",
"g: (((((((((x[0]) & (y[3])) ^ (((x[1]) ^ 1) & (y[6]))) ^ ((x[2]) & ((y[1]) ^ 1))) ^ (((x[3]) ^ 1) & (y[5]))) ^ ((x[4]) & (y[7]))) ^ ((x[5]) & (y[0]))) ^ ((x[6]) & (y[4]))) ^ ((x[7]) & (y[2]))) ^ ((((((((y[0]) & ((y[1]) ^ 1)) & (y[2])) & (y[3])) & (y[4])) & (y[5])) & (y[6])) & (y[7]))\n",
""
"g: (((((((((x[0]) & (y[3])) ^ (((x[1]) ^ 1) & (y[6]))) ^ ((x[2]) & ((y[1]) ^ 1))) ^ (((x[3]) ^ 1) & (y[5]))) ^ ((x[4]) & (y[7]))) ^ ((x[5]) & (y[0]))) ^ ((x[6]) & (y[4]))) ^ ((x[7]) & (y[2]))) ^ ((((((((y[0]) & ((y[1]) ^ 1)) & (y[2])) & (y[3])) & (y[4])) & (y[5])) & (y[6])) & (y[7]))\n"
]
}
],
Expand Down Expand Up @@ -589,7 +585,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.7"
"version": "3.11.4"
}
},
"nbformat": 4,
Expand Down
8 changes: 4 additions & 4 deletions algorithms/algebraic/shor/shor_modular_exponentiation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
"metadata": {},
"outputs": [],
"source": [
"from classiq.qmod import QNum, bind, control, within_apply\n",
"from classiq import *\n",
"from classiq.qmod.builtins.classical_functions import qft_const_adder_phase\n",
"\n",
"\n",
Expand Down Expand Up @@ -256,7 +256,7 @@
},
"outputs": [],
"source": [
"from classiq.qmod import QNum, inplace_prepare_int\n",
"from classiq import *\n",
"\n",
"modulo_num = 15\n",
"reg_len = math.ceil(math.log(modulo_num, 2)) + 1\n",
Expand Down Expand Up @@ -441,7 +441,7 @@
"metadata": {},
"outputs": [],
"source": [
"from classiq.qmod import SWAP, free\n",
"from classiq import *\n",
"from classiq.qmod.symbolic import min, mod_inverse\n",
"\n",
"\n",
Expand Down Expand Up @@ -535,7 +535,7 @@
"metadata": {},
"outputs": [],
"source": [
"from classiq.qmod import hadamard_transform\n",
"from classiq import *\n",
"\n",
"modulo_num = 6\n",
"reg_len = math.ceil(math.log(modulo_num, 2)) + 1\n",
Expand Down
Loading
Loading