Skip to content

Commit

Permalink
Updates for 0.41.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Classiq Bot committed May 13, 2024
1 parent c67564b commit 10dabd0
Show file tree
Hide file tree
Showing 242 changed files with 12,285 additions and 5,844 deletions.
10 changes: 0 additions & 10 deletions .github/ISSUE_TEMPLATE/custom.md

This file was deleted.

37 changes: 0 additions & 37 deletions .github/ISSUE_TEMPLATE/pull-request-template.md

This file was deleted.

26 changes: 26 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
default_language_version:
python: python3.11
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
- id: check-json
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
- repo: https://github.com/psf/black
rev: 24.3.0
hooks:
- id: black-jupyter
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.8.4
hooks:
- id: nbqa-isort
22 changes: 11 additions & 11 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
Examples of behaviour that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals but for the
- Focusing on what is best not just for us as individuals but for the
overall community

Examples of unacceptable behaviour include:

* The use of sexualized language or imagery and sexual attention or
- The use of sexualized language or imagery and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities
Expand Down Expand Up @@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behaviour, harassment of an
standards, including sustained inappropriate behaviour, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
Expand Down
43 changes: 0 additions & 43 deletions CONTRIBUTING.md

This file was deleted.

106 changes: 81 additions & 25 deletions algorithms/algebraic/discrete_log/discrete_log.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,14 @@
"cell_type": "code",
"execution_count": 1,
"id": "2bbc4aa3-8f61-433d-a1cd-c58df445a2fd",
"metadata": {},
"metadata": {
"execution": {
"iopub.execute_input": "2024-05-07T14:37:07.913701Z",
"iopub.status.busy": "2024-05-07T14:37:07.912478Z",
"iopub.status.idle": "2024-05-07T14:37:11.003827Z",
"shell.execute_reply": "2024-05-07T14:37:11.003192Z"
}
},
"outputs": [],
"source": [
"from classiq.qmod import (\n",
Expand Down Expand Up @@ -117,7 +124,14 @@
"cell_type": "code",
"execution_count": 2,
"id": "d7fb63ac-023d-40ac-9395-13c1274d446f",
"metadata": {},
"metadata": {
"execution": {
"iopub.execute_input": "2024-05-07T14:37:11.006726Z",
"iopub.status.busy": "2024-05-07T14:37:11.006374Z",
"iopub.status.idle": "2024-05-07T14:37:11.011232Z",
"shell.execute_reply": "2024-05-07T14:37:11.010657Z"
}
},
"outputs": [],
"source": [
"from classiq.qmod import hadamard_transform, invert, qft\n",
Expand Down Expand Up @@ -197,7 +211,14 @@
"cell_type": "code",
"execution_count": 3,
"id": "8ef24bb4-b063-42d6-a5ea-ddcd5310ae13",
"metadata": {},
"metadata": {
"execution": {
"iopub.execute_input": "2024-05-07T14:37:11.014022Z",
"iopub.status.busy": "2024-05-07T14:37:11.013527Z",
"iopub.status.idle": "2024-05-07T14:37:11.017516Z",
"shell.execute_reply": "2024-05-07T14:37:11.016883Z"
}
},
"outputs": [],
"source": [
"from classiq import Constraints, create_model\n",
Expand All @@ -221,13 +242,20 @@
"cell_type": "code",
"execution_count": 4,
"id": "8e9d0b08-f3f8-4e95-a468-bfeec010d97c",
"metadata": {},
"metadata": {
"execution": {
"iopub.execute_input": "2024-05-07T14:37:11.019590Z",
"iopub.status.busy": "2024-05-07T14:37:11.019416Z",
"iopub.status.idle": "2024-05-07T14:40:05.740675Z",
"shell.execute_reply": "2024-05-07T14:40:05.739982Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Opening: http://localhost:4200/circuit/e3dcf0d1-74ff-494d-b958-9337fb1f32ef?version=0.0.0\n"
"Opening: https://platform.classiq.io/circuit/2f88183e-39d4-4d7d-8a4c-fc6acdce4b40?version=0.41.0.dev39%2B79c8fd0855\n"
]
}
],
Expand All @@ -246,27 +274,34 @@
"cell_type": "code",
"execution_count": 5,
"id": "0aef2760-aa9a-4710-8c60-08333a0a9b0b",
"metadata": {},
"metadata": {
"execution": {
"iopub.execute_input": "2024-05-07T14:40:05.743207Z",
"iopub.status.busy": "2024-05-07T14:40:05.742818Z",
"iopub.status.idle": "2024-05-07T14:40:17.227966Z",
"shell.execute_reply": "2024-05-07T14:40:17.227272Z"
}
},
"outputs": [
{
"data": {
"text/plain": [
"[{'x1': 0.0, 'x2': 0.0, 'func_res': 3.0}: 81,\n",
" {'x1': 0.0, 'x2': 0.0, 'func_res': 4.0}: 75,\n",
" {'x1': 1.0, 'x2': 3.0, 'func_res': 1.0}: 69,\n",
" {'x1': 0.0, 'x2': 0.0, 'func_res': 1.0}: 68,\n",
" {'x1': 3.0, 'x2': 1.0, 'func_res': 1.0}: 67,\n",
" {'x1': 3.0, 'x2': 1.0, 'func_res': 2.0}: 66,\n",
" {'x1': 1.0, 'x2': 3.0, 'func_res': 4.0}: 65,\n",
" {'x1': 3.0, 'x2': 1.0, 'func_res': 4.0}: 63,\n",
" {'x1': 2.0, 'x2': 2.0, 'func_res': 3.0}: 61,\n",
" {'x1': 2.0, 'x2': 2.0, 'func_res': 2.0}: 59,\n",
" {'x1': 0.0, 'x2': 0.0, 'func_res': 2.0}: 59,\n",
"[{'x1': 2.0, 'x2': 2.0, 'func_res': 2.0}: 78,\n",
" {'x1': 2.0, 'x2': 2.0, 'func_res': 1.0}: 77,\n",
" {'x1': 0.0, 'x2': 0.0, 'func_res': 2.0}: 73,\n",
" {'x1': 3.0, 'x2': 1.0, 'func_res': 2.0}: 72,\n",
" {'x1': 3.0, 'x2': 1.0, 'func_res': 1.0}: 69,\n",
" {'x1': 1.0, 'x2': 3.0, 'func_res': 4.0}: 68,\n",
" {'x1': 0.0, 'x2': 0.0, 'func_res': 4.0}: 62,\n",
" {'x1': 1.0, 'x2': 3.0, 'func_res': 2.0}: 60,\n",
" {'x1': 3.0, 'x2': 1.0, 'func_res': 4.0}: 60,\n",
" {'x1': 2.0, 'x2': 2.0, 'func_res': 4.0}: 58,\n",
" {'x1': 3.0, 'x2': 1.0, 'func_res': 3.0}: 58,\n",
" {'x1': 2.0, 'x2': 2.0, 'func_res': 1.0}: 57,\n",
" {'x1': 1.0, 'x2': 3.0, 'func_res': 3.0}: 48,\n",
" {'x1': 1.0, 'x2': 3.0, 'func_res': 2.0}: 46]"
" {'x1': 1.0, 'x2': 3.0, 'func_res': 3.0}: 58,\n",
" {'x1': 2.0, 'x2': 2.0, 'func_res': 3.0}: 57,\n",
" {'x1': 0.0, 'x2': 0.0, 'func_res': 3.0}: 54,\n",
" {'x1': 3.0, 'x2': 1.0, 'func_res': 3.0}: 54,\n",
" {'x1': 0.0, 'x2': 0.0, 'func_res': 1.0}: 53,\n",
" {'x1': 1.0, 'x2': 3.0, 'func_res': 1.0}: 47]"
]
},
"execution_count": 5,
Expand Down Expand Up @@ -297,7 +332,14 @@
"cell_type": "code",
"execution_count": 6,
"id": "4aa286cd-7e4e-408f-90ed-910485becd71",
"metadata": {},
"metadata": {
"execution": {
"iopub.execute_input": "2024-05-07T14:40:17.230735Z",
"iopub.status.busy": "2024-05-07T14:40:17.230196Z",
"iopub.status.idle": "2024-05-07T14:40:17.234073Z",
"shell.execute_reply": "2024-05-07T14:40:17.233495Z"
}
},
"outputs": [
{
"name": "stdout",
Expand All @@ -315,7 +357,14 @@
"cell_type": "code",
"execution_count": 7,
"id": "444d0916-e611-49fa-afc4-324e65240b34",
"metadata": {},
"metadata": {
"execution": {
"iopub.execute_input": "2024-05-07T14:40:17.236527Z",
"iopub.status.busy": "2024-05-07T14:40:17.236174Z",
"iopub.status.idle": "2024-05-07T14:40:17.239674Z",
"shell.execute_reply": "2024-05-07T14:40:17.239031Z"
}
},
"outputs": [
{
"name": "stdout",
Expand All @@ -333,7 +382,14 @@
"cell_type": "code",
"execution_count": 8,
"id": "cbb1b0b3-6091-421b-85bb-7b9b8da0b724",
"metadata": {},
"metadata": {
"execution": {
"iopub.execute_input": "2024-05-07T14:40:17.242019Z",
"iopub.status.busy": "2024-05-07T14:40:17.241522Z",
"iopub.status.idle": "2024-05-07T14:40:17.245044Z",
"shell.execute_reply": "2024-05-07T14:40:17.244483Z"
}
},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -391,7 +447,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.11.9"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 10dabd0

Please sign in to comment.