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

replace QMOD with Qmod #696

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@
"\n",
"### Quantum Functions\n",
"\n",
"The following example will demonstrate how to define QMOD functions by writing a Python function decorated with the `@qfunc` decorator.\n",
"The following example will demonstrate how to define Qmod functions by writing a Python function decorated with the `@qfunc` decorator.\n",
"The typical workflow for defining a quantum function:\n",
"1. Specifying the function signature: The `@qfunc` decorator relies on Python's type-hint mechanism to extract the signature of the QMOD function from the argument list of the Python function.\n",
"2. Specifying the function body: A function decorated with `@qfunc` is executed by the Python interpreter to construct the body of the QMOD function. Inside it, you can do one of the following:\n",
" - Call other `@qfuncs` to insert the corresponding quantum function calls into the body of the resulting QMOD function\n",
"1. Specifying the function signature: The `@qfunc` decorator relies on Python's type-hint mechanism to extract the signature of the Qmod function from the argument list of the Python function.\n",
"2. Specifying the function body: A function decorated with `@qfunc` is executed by the Python interpreter to construct the body of the Qmod function. Inside it, you can do one of the following:\n",
" - Call other `@qfuncs` to insert the corresponding quantum function calls into the body of the resulting Qmod function\n",
" - Introduce local quantum variables, by instantiating a quantum type\n",
" - Use arithmetic and in-place assignment operators to insert special quantum statements into the function\n",
" "
Expand Down
4 changes: 2 additions & 2 deletions community/QClass_2024/Assignments/HW1_QClass2024.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -334,11 +334,11 @@
"metadata": {},
"source": [
"### Exercise 5b - Control (\"Quantum If\")\n",
"The `control` operator is the conditional application of some operation, with the condition being that all control qubits are in the state |1>. This notion is generalized in QMOD to other control states, where the condition is specified as a comparison between a quantum numeric variable and a numeric value, similar to a classical `if` statement. Quantum numeric variables are declared with class `QNum`.\n",
"The `control` operator is the conditional application of some operation, with the condition being that all control qubits are in the state |1>. This notion is generalized in Qmod to other control states, where the condition is specified as a comparison between a quantum numeric variable and a numeric value, similar to a classical `if` statement. Quantum numeric variables are declared with class `QNum`.\n",
"\n",
"See also [Numeric types](https://docs.classiq.io/latest/qmod-reference/language-reference/quantum-types/).\n",
"\n",
"In QMOD this generalization is available as a native statement - control.\n",
"In Qmod this generalization is available as a native statement - control.\n",
"\n",
"See also [control](https://docs.classiq.io/latest/qmod-reference/language-reference/operators/).\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,11 @@
"metadata": {},
"source": [
"### Exercise 5b - Control (\"Quantum If\")\n",
"The `control` operator is the conditional application of some operation, with the condition being that all control qubits are in the state |1>. This notion is generalized in QMOD to other control states, where the condition is specified as a comparison between a quantum numeric variable and a numeric value, similar to a classical `if` statement. Quantum numeric variables are declared with class `QNum`.\n",
"The `control` operator is the conditional application of some operation, with the condition being that all control qubits are in the state |1>. This notion is generalized in Qmod to other control states, where the condition is specified as a comparison between a quantum numeric variable and a numeric value, similar to a classical `if` statement. Quantum numeric variables are declared with class `QNum`.\n",
"\n",
"See also [Numeric types](https://docs.classiq.io/latest/qmod-reference/language-reference/quantum-types/).\n",
"\n",
"In QMOD this generalization is available as a native statement - control.\n",
"In Qmod this generalization is available as a native statement - control.\n",
"\n",
"See also [control](https://docs.classiq.io/latest/qmod-reference/language-reference/operators/).\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"1. Wite out the QMOD and preferences to a JSON file \n",
"1. Wite out the Qmod and preferences to a JSON file \n",
"2. Synthesize the model in Classiq interface \n",
" "
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"source": [
"# Rainbow options with bruteforce methodology\n",
"\n",
"In this Notebook we will go through the implementation using QMOD for the rainbow option.\n",
"In this Notebook we will go through the implementation using Qmod for the rainbow option.\n",
"This Notebook role is to verify result of different metodology on a smal scale problem, as it grows exponentially in the gate count."
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Native QMOD version:"
"Native Qmod version:"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"\n",
"Here is a high-level breakdown of the steps:\n",
"\n",
"1. [**Design**](#design) - write your quantum algorithm using Classiq's QMOD language. Qmod is built for describing quantum programs without pre determining the implementation details. It is intuitive and powerful.\n",
"1. [**Design**](#design) - write your quantum algorithm using Classiq's Qmod language. Qmod is built for describing quantum programs without pre determining the implementation details. It is intuitive and powerful.\n",
"2. [**Optimize**](#optimization) - Send your algorithm to Classiq's synthesis engine (compiler) that comes up with the optimal quantum program for your algorithm, according to the constraints and preferences you apply.\n",
"3. [**Analyze**](#analysis) the quantum program with the Classiq's visualizer tool in order to view the circuit level implementation of your algorithm.\n",
"4. [**Execute**](#execution) it on Classiq's simulators or on any quantum computer and simulators available via the cloud.\n",
Expand Down
Loading