Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit 7f1cf0f

Browse files
committed
Update Python API links to reflect new package
1 parent 2a6d5e0 commit 7f1cf0f

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

api/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ This API reference includes the Q# standard library and the three libraries buil
1414

1515
- [Q# libraries](xref:microsoft.quantum.qsharplibintro)
1616
- [.NET libraries](xref:microsoft.quantum.dotnetlibsintro)
17-
- [Python libraries](https://docs.microsoft.com/python/qsharp)
17+
- [Python libraries](https://docs.microsoft.com/python/qsharp-core/qsharp)
1818

1919
For more information about the Q# libraries, see <xref:microsoft.quantum.libraries>.

api/toc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
- name: Quantum chemistry
1515
href: https://docs.microsoft.com/dotnet/api/microsoft.quantum.chemistry
1616
- name: Python libraries
17-
href: https://docs.microsoft.com/python/qsharp
17+
href: https://docs.microsoft.com/python/qsharp-core/qsharp
1818
- name: IQ# magic commands
1919
href: iqsharp-magic/toc.yml

articles/resources/relnotes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ This release contains the following:
2525

2626
- New [Microsoft.Quantum.Random namespace](xref:microsoft.quantum.random), providing a more convenient way to sample random values from within Q# programs. ([QuantumLibraries#311](https://github.com/microsoft/QuantumLibraries/pull/311), [qsharp-runtime#328](https://github.com/microsoft/qsharp-runtime/pull/328))
2727
- Improved [Microsoft.Quantum.Diagnostics namespace](xref:microsoft.quantum.diagnostics) with new [`DumpOperation` operation](xref:microsoft.quantum.diagnostics.dumpoperation), and new operations for restricting qubit allocation and oracle calls. ([QuantumLibraries#302](https://github.com/microsoft/QuantumLibraries/pull/302))
28-
- New [`%project` magic command](xref:microsoft.quantum.iqsharp.magic-ref.project) in IQ# and [`qsharp.projects` API](https://docs.microsoft.com/python/qsharp/qsharp.projects.projects) in Python to support references to Q# projects outside the current workspace folder. See [iqsharp#277](https://github.com/microsoft/iqsharp/issues/277) for the current limitations of this feature.
28+
- New [`%project` magic command](xref:microsoft.quantum.iqsharp.magic-ref.project) in IQ# and [`qsharp.projects` API](https://docs.microsoft.com/python/qsharp-core/qsharp.projects.projects) in Python to support references to Q# projects outside the current workspace folder. See [iqsharp#277](https://github.com/microsoft/iqsharp/issues/277) for the current limitations of this feature.
2929
- Support for automatically loading `.csproj` files for IQ#/Python hosts, which allows external project or package references to be loaded at initialization time. See the guide for using [Q# with Python and Jupyter Notebooks](xref:microsoft.quantum.guide.host-programs) for more details.
3030
- Added ErrorCorrection.Syndrome sample.
3131
- Added tunable coupling to SimpleIsing.

articles/user-guide/host-programs.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ Multiple qubits:
346346
By default, the `import qsharp` command loads all of the `.qs` files in the current folder and makes their Q# operations and functions
347347
available for use from inside the Python script.
348348

349-
To load Q# code from another folder, the [`qsharp.projects` API](https://docs.microsoft.com/python/qsharp/qsharp.projects.projects)
349+
To load Q# code from another folder, the [`qsharp.projects` API](https://docs.microsoft.com/python/qsharp-core/qsharp.projects.projects)
350350
can be used to add a reference to a `.csproj` file for a Q# project (that is, a project that references `Microsoft.Quantum.Sdk`).
351351
This command will compile any `.qs` files in the folder containing the `.csproj` and its subfolders. It will also recursively load
352352
any packages referenced via `PackageReference` or Q# projects referenced via `ProjectReference` in that `.csproj` file.
@@ -368,7 +368,7 @@ Adding reference to project: ../qrng/Qrng.csproj
368368
Qrng result: 0
369369
```
370370

371-
To load external packages containing Q# code, use the [`qsharp.packages` API](https://docs.microsoft.com/python/qsharp/qsharp.packages.packages).
371+
To load external packages containing Q# code, use the [`qsharp.packages` API](https://docs.microsoft.com/python/qsharp-core/qsharp.packages.packages).
372372

373373
If the Q# code in the current folder depends on external projects or packages, you may see errors when running `import qsharp`,
374374
since the dependencies have not yet been loaded.

articles/user-guide/libraries/additional-libraries.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ To make the package available from Q# code in the current workspace, reload the
7777
## [Python interoperability](#tab/tabid-python)
7878

7979

80-
You can make additional packages available for use in a Python host program by using the [`qsharp.packages.add`](https://docs.microsoft.com/python/qsharp/qsharp.packages.packages) method.
80+
You can make additional packages available for use in a Python host program by using the [`qsharp.packages.add`](https://docs.microsoft.com/python/qsharp-core/qsharp.packages.packages) method.
8181
For example, to add the [**Microsoft.Quantum.Numerics**](https://www.nuget.org/packages/Microsoft.Quantum.Numerics) package for use in an IQ# Notebook, run the following Python code:
8282

8383
```python

articles/user-guide/machines/full-state-simulator.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Because the `QuantumSimulator` class implements the <xref:System.IDisposable> in
3333

3434
### Invoking the simulator from Python
3535

36-
Use the [simulate()](https://docs.microsoft.com/python/qsharp/qsharp.loader.qsharpcallable) method from the Q# Python library with the imported Q# operation:
36+
Use the [simulate()](https://docs.microsoft.com/python/qsharp-core/qsharp.loader.qsharpcallable) method from the Q# Python library with the imported Q# operation:
3737

3838
```python
3939
qubit_result = myOperation.simulate()

articles/user-guide/machines/resources-estimator.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ BorrowedWidth 0
6262
6363
### Invoking the resources estimator from Python
6464

65-
Use the [estimate_resources()](https://docs.microsoft.com/python/qsharp/qsharp.loader.qsharpcallable) method from the Python library with the imported Q# operation:
65+
Use the [estimate_resources()](https://docs.microsoft.com/python/qsharp-core/qsharp.loader.qsharpcallable) method from the Python library with the imported Q# operation:
6666

6767
```python
6868
qubit_result = myOperation.estimate_resources()

articles/user-guide/machines/toffoli-simulator.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Note that, unlike the `QuantumSimulator` class, the `ToffoliSimulator` class doe
3333

3434
### Invoking the Toffoli simulator from Python
3535

36-
Use the [toffoli_simulate()](https://docs.microsoft.com/python/qsharp/qsharp.loader.qsharpcallable) method from the Python library with the imported Q# operation:
36+
Use the [toffoli_simulate()](https://docs.microsoft.com/python/qsharp-core/qsharp.loader.qsharpcallable) method from the Python library with the imported Q# operation:
3737

3838
```python
3939
qubit_result = myOperation.toffoli_simulate()

0 commit comments

Comments
 (0)