Skip to content

Commit ced6a91

Browse files
Sync docs for SDK version 1.0.0
1 parent 5df369a commit ced6a91

File tree

7 files changed

+431
-0
lines changed

7 files changed

+431
-0
lines changed

.internal/docs/qmod-reference/api-reference/functions/core_library/arithmetic.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ search:
1313
- multiply
1414
- multiply_constant
1515
- canonical_add
16+
- canonical_add_constant
1617
- canonical_multiply
1718
- canonical_multiply_constant
1819
<!-- prettier-ignore-end -->
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
search:
3+
boost: 2.9
4+
---
5+
6+
<!-- spell-checker: disable -->
7+
<!-- prettier-ignore-start -->
8+
::: classiq.qmod.builtins.functions.gray_code
9+
options:
10+
show_if_no_docstrings: false
11+
members:
12+
- select_rotation
13+
<!-- prettier-ignore-end -->
14+
<!-- spell-checker: enable -->
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
search:
3+
boost: 3.060
4+
---
5+
6+
::: classiq.interface.backend.backend_preferences.C12BackendPreferences
7+
::: classiq.interface.backend.quantum_backend_providers.C12BackendNames
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
---
2+
search:
3+
boost: 0.900
4+
---
5+
6+
<!-- cspell:ignore inilabel inistatevector ininoisy iswap -->
7+
8+
# Execution on C12 Quantum Cloud
9+
10+
[C12](https://www.c12qe.com/) is building scalable carbon-based quantum computers. Classiq supports execution on C12 QPU-emulators.
11+
12+
## Configuration
13+
14+
C12 introduces several
15+
customizable hardware parameters (Available through SDK only):
16+
17+
### inilabel
18+
19+
The initial state specified using a binary label format, such as "00", "01", etc.
20+
21+
### inistatevector
22+
23+
The initial state vector for each qubit, provided as a comma-separated list of complex values.
24+
Example: "1.+0.j, 0.+0.j, 0.+0.j, 0.+0.j"
25+
26+
Note: Either `inilabel` or `inistatevector` can be provided but not both.
27+
28+
### ininoisy
29+
30+
Indicates whether noisy initialization of the circuit should be used.
31+
32+
## Usage Example
33+
34+
If you are using [Classiq IDE](https://platform.classiq.io/), simply choose C12 in the checkbox menu under Execution page.
35+
36+
### Setting up Backend Preferences
37+
38+
[comment]: DO_NOT_TEST
39+
40+
```python
41+
from classiq.execution import C12BackendPreferences
42+
from classiq import ExecutionPreferences, ExecutionSession, synthesize
43+
44+
backend_preferences = C12BackendPreferences(
45+
backend_name="c12sim-iswap",
46+
inilabel="00", # Either inilabel or inistatevector must be provided
47+
# inistatevector="1.+0.j, 0.+0.j,", # Either inilabel or inistatevector must be provided
48+
ininoisy=True,
49+
)
50+
51+
execution_preferences = ExecutionPreferences(
52+
num_shots=1000,
53+
backend_preferences=backend_preferences,
54+
)
55+
```
56+
57+
### Execute with ExecutionSession
58+
59+
Create your model, set execution preferences, synthesize, then run with `ExecutionSession`:
60+
61+
[comment]: DO_NOT_TEST
62+
63+
```python
64+
quantum_program = synthesize(your_model, preferences=preferences)
65+
quantum_program = set_quantum_program_execution_preferences(
66+
quantum_program, execution_preferences
67+
)
68+
69+
with ExecutionSession(quantum_program) as session:
70+
result = session.sample()
71+
```
72+
73+
## Supported Backends
74+
75+
- SIMULATOR = "c12sim_iswap"
76+
- SQUARED = "squared-iswap"

.internal/docs/user-guide/execution/cloud-providers/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ execution of quantum programs on multiple backends.
2121
- [IonQ](ionq-backends.md)
2222
- [Azure Quantum](azure-backends.md)
2323
- [Alice & Bob](alice-and-bob-backends.md)
24+
- [C12](c12.md)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Modeling
2+
3+
This under construction section is where you can learn the concepts and syntax needed to design quantum models—simply put, to write quantum code using Classiq.
4+
5+
If you prefer a faster, exercise-oriented path to learning, see the [Classiq Tutorial](../../getting-started/classiq_tutorial/index.md).
6+
7+
For a complete, formal specification of the language, refer to the [language reference](../../qmod-reference/language-reference).

0 commit comments

Comments
 (0)