diff --git a/Build/images/samples/Dockerfile b/Build/images/samples/Dockerfile index fac7f7228eff..ffe2ee21a969 100644 --- a/Build/images/samples/Dockerfile +++ b/Build/images/samples/Dockerfile @@ -2,7 +2,7 @@ # https://github.com/microsoft/iqsharp/blob/main/images/iqsharp-base/Dockerfile. # As per Binder documentation, we choose to use an SHA sum here instead of a # tag. -FROM mcr.microsoft.com/quantum/iqsharp-base:0.28.277227 +FROM mcr.microsoft.com/quantum/iqsharp-base:0.28.291394 # Mark that this Dockerfile is used with the samples repository. ENV IQSHARP_HOSTING_ENV=SAMPLES_DOCKERFILE @@ -56,10 +56,6 @@ RUN dotnet tool install -g \ Microsoft.dotnet-interactive --version 1.0.355307 && \ dotnet interactive jupyter install -# On .NET 5 and later, we need to make sure that NuGet cache files are owned -# by the notebook user and not by root. -RUN chown -R ${USER}:${USER} /tmp/NuGetScratch - # Install additional Python dependencies for the PythonInterop sample. # Note that QuTiP has as a hard requirement that its dependencies must be # installed first, so we separate into two pip install steps. diff --git a/Build/steps.yml b/Build/steps.yml index 6b00a4bc225e..33191474ba82 100644 --- a/Build/steps.yml +++ b/Build/steps.yml @@ -23,6 +23,10 @@ steps: - script: pip install ruamel_yaml jsonschema click setuptools wheel pytest jupyter displayName: 'Install Python tools' +- task: NuGetAuthenticate@1 + inputs: + nuGetServiceConnections: 'public-alpha feed' + ## # Build, test & pack ## diff --git a/global.json b/global.json index 6b6235559c9f..6014bf3293ad 100644 --- a/global.json +++ b/global.json @@ -4,6 +4,6 @@ "rollForward": "latestMinor" }, "msbuild-sdks": { - "Microsoft.Quantum.Sdk": "0.28.277227" + "Microsoft.Quantum.Sdk": "0.28.291394" } } \ No newline at end of file diff --git a/samples/algorithms/chsh-game/CHSHGame.csproj b/samples/algorithms/chsh-game/CHSHGame.csproj index 192aa30d9826..9b1a173b168a 100644 --- a/samples/algorithms/chsh-game/CHSHGame.csproj +++ b/samples/algorithms/chsh-game/CHSHGame.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/algorithms/database-search/DatabaseSearchSample.csproj b/samples/algorithms/database-search/DatabaseSearchSample.csproj index 14070cbcf4fe..b455720d4e1c 100644 --- a/samples/algorithms/database-search/DatabaseSearchSample.csproj +++ b/samples/algorithms/database-search/DatabaseSearchSample.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/algorithms/integer-factorization/IntegerFactorization.csproj b/samples/algorithms/integer-factorization/IntegerFactorization.csproj index fda09a63d18c..289e68633eac 100644 --- a/samples/algorithms/integer-factorization/IntegerFactorization.csproj +++ b/samples/algorithms/integer-factorization/IntegerFactorization.csproj @@ -1,4 +1,4 @@ - + Exe @@ -9,7 +9,7 @@ - + diff --git a/samples/algorithms/oracle-synthesis/OracleSynthesis.csproj b/samples/algorithms/oracle-synthesis/OracleSynthesis.csproj index 14070cbcf4fe..b455720d4e1c 100644 --- a/samples/algorithms/oracle-synthesis/OracleSynthesis.csproj +++ b/samples/algorithms/oracle-synthesis/OracleSynthesis.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/algorithms/order-finding/OrderFinding.csproj b/samples/algorithms/order-finding/OrderFinding.csproj index 57ec0e28332b..cdc41364a882 100644 --- a/samples/algorithms/order-finding/OrderFinding.csproj +++ b/samples/algorithms/order-finding/OrderFinding.csproj @@ -1,4 +1,4 @@ - + Exe net6.0 diff --git a/samples/algorithms/repeat-until-success/RepeatUntilSuccess.csproj b/samples/algorithms/repeat-until-success/RepeatUntilSuccess.csproj index 14070cbcf4fe..b455720d4e1c 100644 --- a/samples/algorithms/repeat-until-success/RepeatUntilSuccess.csproj +++ b/samples/algorithms/repeat-until-success/RepeatUntilSuccess.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/algorithms/reversible-logic-synthesis/ReversibleLogicSynthesis.csproj b/samples/algorithms/reversible-logic-synthesis/ReversibleLogicSynthesis.csproj index 14070cbcf4fe..b455720d4e1c 100644 --- a/samples/algorithms/reversible-logic-synthesis/ReversibleLogicSynthesis.csproj +++ b/samples/algorithms/reversible-logic-synthesis/ReversibleLogicSynthesis.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/algorithms/simple-grover/SimpleGroverSample.csproj b/samples/algorithms/simple-grover/SimpleGroverSample.csproj index 14070cbcf4fe..b455720d4e1c 100644 --- a/samples/algorithms/simple-grover/SimpleGroverSample.csproj +++ b/samples/algorithms/simple-grover/SimpleGroverSample.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/algorithms/sudoku-grover/SudokuGroverSample.csproj b/samples/algorithms/sudoku-grover/SudokuGroverSample.csproj index 192aa30d9826..9b1a173b168a 100644 --- a/samples/algorithms/sudoku-grover/SudokuGroverSample.csproj +++ b/samples/algorithms/sudoku-grover/SudokuGroverSample.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/algorithms/variational-algorithms/VariationalAlgorithms.csproj b/samples/algorithms/variational-algorithms/VariationalAlgorithms.csproj index 2a36d7bea7be..cd2495e77338 100644 --- a/samples/algorithms/variational-algorithms/VariationalAlgorithms.csproj +++ b/samples/algorithms/variational-algorithms/VariationalAlgorithms.csproj @@ -1,4 +1,4 @@ - + Library net6.0 diff --git a/samples/algorithms/variational-algorithms/environment.yml b/samples/algorithms/variational-algorithms/environment.yml index aba254978d25..6d6674c9d7f0 100644 --- a/samples/algorithms/variational-algorithms/environment.yml +++ b/samples/algorithms/variational-algorithms/environment.yml @@ -8,7 +8,7 @@ channels: dependencies: - notebook - matplotlib - - qsharp==0.28.277227 + - qsharp==0.28.291394 # This sample uses the QuTiP library to decompose Hamiltonian operators in # the Pauli basis. - qutip diff --git a/samples/azure-quantum/check-ghz/CheckGHZ.csproj b/samples/azure-quantum/check-ghz/CheckGHZ.csproj index 29c3fcd96563..456e523546d7 100644 --- a/samples/azure-quantum/check-ghz/CheckGHZ.csproj +++ b/samples/azure-quantum/check-ghz/CheckGHZ.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/azure-quantum/chemistry/Hamiltonian/Hamiltonian.csproj b/samples/azure-quantum/chemistry/Hamiltonian/Hamiltonian.csproj index e81c743d300e..1437bc16dd21 100644 --- a/samples/azure-quantum/chemistry/Hamiltonian/Hamiltonian.csproj +++ b/samples/azure-quantum/chemistry/Hamiltonian/Hamiltonian.csproj @@ -1,10 +1,10 @@ - + Library net6.0 true - + diff --git a/samples/azure-quantum/chemistry/QuantumPhaseEstimation/Molecule.csproj b/samples/azure-quantum/chemistry/QuantumPhaseEstimation/Molecule.csproj index 4ff937597360..be69c507f67c 100644 --- a/samples/azure-quantum/chemistry/QuantumPhaseEstimation/Molecule.csproj +++ b/samples/azure-quantum/chemistry/QuantumPhaseEstimation/Molecule.csproj @@ -1,9 +1,9 @@ - + Library net6.0 - + diff --git a/samples/azure-quantum/grover/Grover.csproj b/samples/azure-quantum/grover/Grover.csproj index 5438ba0d48ea..b56c8e4db570 100644 --- a/samples/azure-quantum/grover/Grover.csproj +++ b/samples/azure-quantum/grover/Grover.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/azure-quantum/hidden-shift/HiddenShift.csproj b/samples/azure-quantum/hidden-shift/HiddenShift.csproj index 5438ba0d48ea..b56c8e4db570 100644 --- a/samples/azure-quantum/hidden-shift/HiddenShift.csproj +++ b/samples/azure-quantum/hidden-shift/HiddenShift.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/azure-quantum/ising-model/IsingModel.csproj b/samples/azure-quantum/ising-model/IsingModel.csproj index c9fdb30610ff..3f954d862b55 100644 --- a/samples/azure-quantum/ising-model/IsingModel.csproj +++ b/samples/azure-quantum/ising-model/IsingModel.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/azure-quantum/iterative-phase-estimation/iterative-phase-estimation.csproj b/samples/azure-quantum/iterative-phase-estimation/iterative-phase-estimation.csproj index 8b73b7e3f0c9..87b14ea8f51e 100644 --- a/samples/azure-quantum/iterative-phase-estimation/iterative-phase-estimation.csproj +++ b/samples/azure-quantum/iterative-phase-estimation/iterative-phase-estimation.csproj @@ -1,4 +1,4 @@ - + Exe net6.0 diff --git a/samples/azure-quantum/parallel-qrng/ParallelQrng.csproj b/samples/azure-quantum/parallel-qrng/ParallelQrng.csproj index d51d3c9be075..de768c579789 100644 --- a/samples/azure-quantum/parallel-qrng/ParallelQrng.csproj +++ b/samples/azure-quantum/parallel-qrng/ParallelQrng.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/azure-quantum/parallel-qrng/ParallelQrng.ipynb b/samples/azure-quantum/parallel-qrng/ParallelQrng.ipynb index e92bf5a3f677..e722153e9c8a 100644 --- a/samples/azure-quantum/parallel-qrng/ParallelQrng.ipynb +++ b/samples/azure-quantum/parallel-qrng/ParallelQrng.ipynb @@ -267,7 +267,7 @@ "outputs": [ { "data": { - "application/x-qsharp-data": "[{\"Name\":\"%azure.connect\",\"Documentation\":{\"Summary\":\"Connects to an Azure Quantum workspace or displays current connection status.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows for connecting to an Azure Quantum workspace\\r\\nas specified by the resource ID and location of the workspace or by a combination of\\r\\nsubscription ID, resource group name, workspace name, and location.\\r\\n\\r\\nIf the connection is successful, a list of the available Q# execution targets\\r\\nin the Azure Quantum workspace will be displayed.\\r\\n\\r\\n#### Required parameters\\r\\n\\r\\nThe Azure Quantum workspace can be identified by resource ID:\\r\\n\\r\\n- `resourceId=`: The resource ID of the Azure Quantum workspace.\\r\\nThis can be obtained from the workspace page in the Azure portal. The `resourceId=` prefix\\r\\nis optional for this parameter, as long as the resource ID is valid.\\r\\n\\r\\nAlternatively, it can be identified by subscription ID, resource group name, and workspace name:\\r\\n\\r\\n- `subscription=`: The Azure subscription ID for the Azure Quantum workspace.\\r\\n- `resourceGroup=`: The Azure resource group name for the Azure Quantum workspace.\\r\\n- `workspace=`: The name of the Azure Quantum workspace.\\r\\n\\r\\nAlong with the identifiers above, a valid location is required.\\r\\n\\r\\n- `location=`: The Azure region where the Azure Quantum workspace is provisioned.\\r\\nThis may be specified as a region name such as `\\\"East US\\\"` or a location name such as `\\\"eastus\\\"`.\\r\\n\\r\\n#### Optional parameters\\r\\n\\r\\n- `storage=`: The connection string to the Azure storage\\r\\naccount. Required if the specified Azure Quantum workspace was not linked to a storage\\r\\naccount at workspace creation time.\\r\\n- `credential=`: The type of credentials to use to authenticate with Azure.\\r\\nNOTE: to authenticate we leverage the [Azure Identity library](https://docs.microsoft.com/dotnet/api/overview/azure/identity-readme), \\r\\nbased on this parameter we will create an instance of a Credential Class. \\r\\nPossible options are:\\r\\n * [Environment](https://docs.microsoft.com/dotnet/api/azure.identity.environmentcredential):\\r\\n Authenticates a service principal or user via credential information specified in environment variables.\\r\\n * [ManagedIdentity](https://docs.microsoft.com/dotnet/api/azure.identity.managedidentitycredential):\\r\\n Authenticates the managed identity of an azure resource.\\r\\n * [CLI](https://docs.microsoft.com/dotnet/api/azure.identity.azureclicredential):\\r\\n Authenticate in a development environment with the Azure CLI.\\r\\n * [SharedToken](https://docs.microsoft.com/dotnet/api/azure.identity.sharedtokencachecredential):\\r\\n Authenticate using tokens in the local cache shared between Microsoft applications.\\r\\n * [VisualStudio](https://docs.microsoft.com/dotnet/api/azure.identity.visualstudiocredential):\\r\\n Authenticate using data from Visual Studio.\\r\\n * [VisualStudioCode](https://docs.microsoft.com/dotnet/api/azure.identity.visualstudiocodecredential):\\r\\n Authenticate in a development environment with Visual Studio Code.\\r\\n * [Interactive](https://docs.microsoft.com/dotnet/api/azure.identity.interactivebrowsercredential):\\r\\n Opens a new browser window to interactively authenticate a user \\r\\n and obtain an access token.\\r\\n * [DeviceCode](https://docs.microsoft.com/dotnet/api/azure.identity.devicecodecredential):\\r\\n Authenticates a user using the device code flow to obtain an access token.\\r\\nIf not provided, it will try each credential type in order and pick the first one that can\\r\\nsuccesfully authenticate with Azure.\\r\\n\\r\\n#### Possible errors\\r\\n\\r\\n- `WorkspaceNotFound`: No Azure Quantum workspace was found that matches the specified criteria.\\r\\n- `AuthenticationFailed`: Failed to authenticate to the specified Azure Quantum workspace.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nConnect to an Azure Quantum workspace using its resource ID to the 'West Us' region:\\r\\n```\\r\\nIn []: %azure.connect \\\"/subscriptions/.../Microsoft.Quantum/Workspaces/WORKSPACE_NAME\\\" location=\\\"West US\\\"\\r\\nOut[]: Connected to Azure Quantum workspace WORKSPACE_NAME in location westus.\\r\\n \\r\\n```\\r\\n \",\"\\r\\nConnect to an Azure Quantum workspace using its resource ID, a storage account connection string, and a location:\\r\\n```\\r\\nIn []: %azure.connect resourceId=\\\"/subscriptions/.../Microsoft.Quantum/Workspaces/WORKSPACE_NAME\\\"\\r\\n storage=\\\"STORAGE_ACCOUNT_CONNECTION_STRING\\\"\\r\\n location=\\\"East US\\\"\\r\\nOut[]: Connected to Azure Quantum workspace WORKSPACE_NAME in location eastus.\\r\\n \\r\\n```\\r\\n \",\"\\r\\nConnect to an Azure Quantum workspace using individual subscription ID, resource group name, using a browser to prompt for user credentials with Azure:\\r\\n```\\r\\nIn []: %azure.connect subscription=\\\"SUBSCRIPTION_ID\\\"\\r\\n resourceGroup=\\\"RESOURCE_GROUP_NAME\\\"\\r\\n workspace=\\\"WORKSPACE_NAME\\\"\\r\\n location=\\\"West US\\\"\\r\\n credential=\\\"interactive\\\"\\r\\nOut[]: Connected to Azure Quantum workspace WORKSPACE_NAME in location westus.\\r\\n \\r\\n```\\r\\n \",\"\\r\\nPrint information about the currently-connected Azure Quantum workspace:\\r\\n```\\r\\nIn []: %azure.connect\\r\\nOut[]: Connected to Azure Quantum workspace WORKSPACE_NAME in location westus.\\r\\n \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.AzureClient\"},{\"Name\":\"%azure.execute\",\"Documentation\":{\"Summary\":\"Submits a job to an Azure Quantum workspace and waits for completion.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows for submitting a Q# operation or function\\r\\nto be run on the specified target in the current Azure Quantum workspace.\\r\\nThe command waits a specified amount of time for the job to complete before returning.\\r\\n\\r\\nThe Azure Quantum workspace must have been previously initialized\\r\\nusing the [`%azure.connect` magic command](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.connect),\\r\\nand an execution target for the job must have been specified using the\\r\\n[`%azure.target` magic command](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.target).\\r\\n\\r\\n#### Required parameters\\r\\n\\r\\n- Q# operation or function name. This must be the first parameter, and must be a valid Q# operation\\r\\nor function name that has been defined either in the notebook or in a Q# file in the same folder.\\r\\n- Arguments for the Q# operation or function must also be specified as `key=value` pairs.\\r\\n\\r\\n#### Optional parameters\\r\\n\\r\\n- `jobName=`: Friendly name to identify this job. If not specified,\\r\\nthe Q# operation or function name will be used as the job name.\\r\\n- `jobParams=`: Provider-specific job parameters\\r\\nexpressed in JSON as one or more `key`:`value` pairs to be passed to the execution target. Values must be strings.\\r\\n- `shots=` (default=500): Number of times to repeat execution of the\\r\\nspecified Q# operation or function.\\r\\n- `timeout=` (default=30): Time to wait (in seconds) for job completion\\r\\nbefore the magic command returns.\\r\\n- `poll=` (default=5): Interval (in seconds) to poll for\\r\\njob status while waiting for job execution to complete.\\r\\n\\r\\n#### Possible errors\\r\\n\\r\\n- `NotConnected`: Not connected to any Azure Quantum workspace.\\r\\n- `NoTarget`: No execution target has been configured for Azure Quantum job submission.\\r\\n- `NoOperationName`: No Q# operation name was specified for Azure Quantum job submission.\\r\\n- `InvalidTarget`: The specified execution target is not valid for Q# job submission in the current Azure Quantum workspace.\\r\\n- `UnrecognizedOperationName`: The specified Q# operation name was not recognized.\\r\\n- `InvalidEntryPoint`: The specified Q# operation cannot be used as an entry point for Azure Quantum job submission.\\r\\n- `JobSubmissionFailed`: Failed to submit the job to the Azure Quantum workspace.\\r\\n- `JobNotCompleted`: The specified Azure Quantum job has not yet completed.\\r\\n- `JobOutputDownloadFailed`: Failed to download results for the specified Azure Quantum job.\\r\\n- `JobFailedOrCancelled`: The specified Azure Quantum job failed or was cancelled.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nRun a Q# operation defined as `operation MyOperation(a : Int, b : Int) : Result`\\r\\non the active target in the current Azure Quantum workspace:\\r\\n```\\r\\nIn []: %azure.execute MyOperation a=5 b=10\\r\\nOut[]: Submitting MyOperation to target provider.qpu...\\r\\n Job successfully submitted for 500 shots.\\r\\n Job name: MyOperation\\r\\n Job ID: \\r\\n Waiting up to 30 seconds for Azure Quantum job to complete...\\r\\n [1:23:45 PM] Current job status: Waiting\\r\\n [1:23:50 PM] Current job status: Executing\\r\\n [1:23:55 PM] Current job status: Succeeded\\r\\n \\r\\n```\\r\\n \",\"\\r\\nRun a Q# operation defined as `operation MyOperation(a : Int, b : Int) : Result`\\r\\non the active target in the current Azure Quantum workspace,\\r\\nspecifying a custom job name, number of shots, timeout, polling interval, and provider-specific job parameters:\\r\\n```\\r\\nIn []: %azure.submit MyOperation a=5 b=10 jobName=\\\"My job\\\" shots=100 timeout=60 poll=10 jobParams={\\\"Key1\\\":\\\"Val1\\\",\\\"Key2\\\":\\\"Val2\\\"}\\r\\nOut[]: Submitting MyOperation to target provider.qpu...\\r\\n Job successfully submitted for 100 shots.\\r\\n Job name: My job\\r\\n Job ID: \\r\\n Waiting up to 60 seconds for Azure Quantum job to complete...\\r\\n [1:23:45 PM] Current job status: Waiting\\r\\n [1:23:55 PM] Current job status: Waiting\\r\\n [1:24:05 PM] Current job status: Executing\\r\\n [1:24:15 PM] Current job status: Succeeded\\r\\n \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.AzureClient\"},{\"Name\":\"%azure.jobs\",\"Documentation\":{\"Summary\":\"Displays a list of jobs in the current Azure Quantum workspace.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows for displaying the list of jobs in the current \\r\\nAzure Quantum workspace, optionally filtering the list to jobs which\\r\\nhave an ID, name, or target containing the provided filter parameter.\\r\\n\\r\\nThe Azure Quantum workspace must have been previously initialized\\r\\nusing the [`%azure.connect` magic command](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.connect).\\r\\n\\r\\n#### Optional parameters\\r\\n\\r\\n- A string to filter the list of jobs. Jobs which have an ID, name, or target\\r\\ncontaining the provided filter parameter will be displayed. If not specified,\\r\\nno job is filtered.\\r\\n- `count=` (default=30): The max number of jobs to return.\\r\\n\\r\\n#### Possible errors\\r\\n\\r\\n- `NotConnected`: Not connected to any Azure Quantum workspace.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nGet the list of jobs:\\r\\n```\\r\\nIn []: %azure.jobs\\r\\nOut[]: \\r\\n```\\r\\n \",\"\\r\\nGet the list of jobs whose ID, name, or target contains \\\"My job\\\":\\r\\n```\\r\\nIn []: %azure.jobs \\\"My job\\\"\\r\\nOut[]: \\r\\n```\\r\\n \",\"\\r\\nGet the list of jobs whose ID, name, or target contains \\\"My job\\\", limit it to at most 100 jobs:\\r\\n```\\r\\nIn []: %azure.jobs \\\"My job\\\" count=100\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.AzureClient\"},{\"Name\":\"%azure.output\",\"Documentation\":{\"Summary\":\"Displays results for a job in the current Azure Quantum workspace.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows for displaying results for a job in the current \\r\\nAzure Quantum workspace.\\r\\nThe job execution must already be completed in order to display\\r\\nresults.\\r\\n\\r\\nThe Azure Quantum workspace must have been previously initialized\\r\\nusing the [`%azure.connect` magic command](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.connect.\\r\\n\\r\\n#### Optional parameters\\r\\n\\r\\n- The job ID for which to display results. If not specified, the job ID from\\r\\nthe most recent call to [`%azure.submit`](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.submit\\r\\nor [`%azure.execute`](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.execute will be used.\\r\\n\\r\\n#### Possible errors\\r\\n\\r\\n- `NotConnected`: Not connected to any Azure Quantum workspace.\\r\\n- `JobNotFound`: No job with the given ID was found in the current Azure Quantum workspace.\\r\\n- `JobNotCompleted`: The specified Azure Quantum job has not yet completed.\\r\\n- `JobOutputDownloadFailed`: Failed to download results for the specified Azure Quantum job.\\r\\n- `JobFailedOrCancelled`: The specified Azure Quantum job failed or was cancelled.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nGet results of a specific job:\\r\\n```\\r\\nIn []: %azure.output JOB_ID\\r\\nOut[]: \\r\\n```\\r\\n \",\"\\r\\nGet results of the most recently submitted job:\\r\\n```\\r\\nIn []: %azure.output\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.AzureClient\"},{\"Name\":\"%azure.quotas\",\"Documentation\":{\"Summary\":\"Displays a list of quotas for the current Azure Quantum workspace.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows for displaying quota information for the current \\r\\nAzure Quantum workspace.\\r\\n\\r\\nThe Azure Quantum workspace must have been previously initialized\\r\\nusing the [`%azure.connect` magic command](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.connect).\\r\\n \\r\\n#### Possible errors\\r\\n\\r\\n- `NotConnected`: Not connected to any Azure Quantum workspace.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nGet the list of quotas:\\r\\n```\\r\\nIn []: %azure.quotas\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.AzureClient\"},{\"Name\":\"%azure.status\",\"Documentation\":{\"Summary\":\"Displays status for a job in the current Azure Quantum workspace.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows for displaying status for a job in the current \\r\\nAzure Quantum workspace.\\r\\n\\r\\nThe Azure Quantum workspace must have been previously initialized\\r\\nusing the [`%azure.connect` magic command](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.connect).\\r\\n\\r\\n#### Optional parameters\\r\\n\\r\\n- The job ID for which to display status. If not specified, the job ID from\\r\\nthe most recent call to [`%azure.submit`](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.submit)\\r\\nor [`%azure.execute`](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.execute) will be used.\\r\\n\\r\\n#### Possible errors\\r\\n\\r\\n- `NotConnected`: Not connected to any Azure Quantum workspace.\\r\\n- `JobNotFound`: No job with the given ID was found in the current Azure Quantum workspace.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nGet the status of a specific job:\\r\\n```\\r\\nIn []: %azure.status JOB_ID\\r\\nOut[]: \\r\\n```\\r\\n \",\"\\r\\nGet the status of the most recently submitted job:\\r\\n```\\r\\nIn []: %azure.status\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.AzureClient\"},{\"Name\":\"%azure.submit\",\"Documentation\":{\"Summary\":\"Submits a job to an Azure Quantum workspace.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows for submitting a Q# operation or function\\r\\nto be run on the specified target in the current Azure Quantum workspace.\\r\\nThe command returns immediately after the job is submitted.\\r\\n\\r\\nThe Azure Quantum workspace must have been previously initialized\\r\\nusing the [`%azure.connect` magic command](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.connect),\\r\\nand an execution target for the job must have been specified using the\\r\\n[`%azure.target` magic command](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.target).\\r\\n\\r\\n#### Required parameters\\r\\n\\r\\n- Q# operation or function name. This must be the first parameter, and must be a valid Q# operation\\r\\nor function name that has been defined either in the notebook or in a Q# file in the same folder.\\r\\n- Arguments for the Q# operation or function must also be specified as `key=value` pairs.\\r\\n\\r\\n#### Optional parameters\\r\\n\\r\\n- `jobName=`: Friendly name to identify this job. If not specified,\\r\\nthe Q# operation or function name will be used as the job name.\\r\\n- `jobParams=`: Provider-specific job parameters\\r\\nexpressed in JSON as one or more `key`:`value` pairs to be passed to the execution target. Values must be strings.\\r\\n- `shots=` (default=500): Number of times to repeat execution of the\\r\\nspecified Q# operation or function.\\r\\n\\r\\n#### Possible errors\\r\\n\\r\\n- `NotConnected`: Not connected to any Azure Quantum workspace.\\r\\n- `NoTarget`: No execution target has been configured for Azure Quantum job submission.\\r\\n- `NoOperationName`: No Q# operation name was specified for Azure Quantum job submission.\\r\\n- `InvalidTarget`: The specified execution target is not valid for Q# job submission in the current Azure Quantum workspace.\\r\\n- `UnrecognizedOperationName`: The specified Q# operation name was not recognized.\\r\\n- `InvalidEntryPoint`: The specified Q# operation cannot be used as an entry point for Azure Quantum job submission.\\r\\n- `JobSubmissionFailed`: Failed to submit the job to the Azure Quantum workspace.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nSubmit a Q# operation defined as `operation MyOperation(a : Int, b : Int) : Result`\\r\\nfor execution on the active target in the current Azure Quantum workspace:\\r\\n```\\r\\nIn []: %azure.submit MyOperation a=5 b=10\\r\\nOut[]: Submitting MyOperation to target provider.qpu...\\r\\n Job successfully submitted for 500 shots.\\r\\n Job name: MyOperation\\r\\n Job ID: \\r\\n \\r\\n```\\r\\n \",\"\\r\\nSubmit a Q# operation defined as `operation MyOperation(a : Int, b : Int) : Result`\\r\\nfor execution on the active target in the current Azure Quantum workspace,\\r\\nspecifying a custom job name, number of shots, and provider-specific job parameters:\\r\\n```\\r\\nIn []: %azure.submit MyOperation a=5 b=10 jobName=\\\"My job\\\" shots=100 jobParams={\\\"Key1\\\":\\\"Val1\\\",\\\"Key2\\\":\\\"Val2\\\"}\\r\\nOut[]: Submitting MyOperation to target provider.qpu...\\r\\n Job successfully submitted for 100 shots.\\r\\n Job name: My job\\r\\n Job ID: \\r\\n \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.AzureClient\"},{\"Name\":\"%azure.target\",\"Documentation\":{\"Summary\":\"Sets or displays the active execution target for Q# job submission in an Azure Quantum workspace.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows for specifying or displaying the execution target for Q# job submission\\r\\nin an Azure Quantum workspace.\\r\\n\\r\\nThe Azure Quantum workspace must have been previously initialized\\r\\nusing the [`%azure.connect` magic command](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.connect)\\r\\nmagic command. The specified execution target must be available in the workspace and support execution of Q# programs.\\r\\n\\r\\n#### Optional parameters\\r\\n\\r\\n- The target ID to set as the active execution target for Q# job submission. If not specified,\\r\\nthe currently active execution target is displayed.\\r\\n\\r\\n#### Possible errors\\r\\n\\r\\n- `NotConnected`: Not connected to any Azure Quantum workspace.\\r\\n- `InvalidTarget`: The specified execution target is not valid for Q# job submission in the current Azure Quantum workspace.\\r\\n- `NoTarget`: No execution target has been configured for Azure Quantum job submission.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nSet the current target for Q# job submission to `provider.qpu`:\\r\\n```\\r\\nIn []: %azure.target provider.qpu\\r\\nOut[]: Loading package Microsoft.Quantum.Providers.Provider and dependencies...\\r\\n Active target is now provider.qpu\\r\\n \\r\\n```\\r\\n \",\"\\r\\nDisplay the current target and all available targets in the current Azure Quantum workspace:\\r\\n```\\r\\nIn []: %azure.target\\r\\nOut[]: Current execution target: provider.qpu\\r\\n Available execution targets: provider.qpu, provider.simulator\\r\\n \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.AzureClient\"},{\"Name\":\"%config\",\"Documentation\":{\"Summary\":\"Allows setting or querying configuration options.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows for setting or querying\\r\\nconfiguration options used to control the behavior of the\\r\\nIQ# kernel (such as state visualization options). It also\\r\\nallows for saving those options to a JSON file in the current\\r\\nworking directory (using the `--save` option).\\r\\n\\r\\n#### Configuration settings\\r\\n\\r\\n**`dump.basisStateLabelingConvention`**\\r\\n\\r\\n**Value:** `\\\"LittleEndian\\\"` (default), `\\\"BigEndian\\\"`, or `\\\"Bitstring\\\"`\\r\\n\\r\\nThe convention to be used when labeling computational\\r\\nbasis states in output from callables such as `DumpMachine` or `DumpRegister`.\\r\\n\\r\\n**`dump.truncateSmallAmplitudes`**\\r\\n\\r\\n**Value:** `true` or `false` (default)\\r\\n\\r\\nHides basis states of a state vector whose measurement probabilities\\r\\n(i.e., squared amplitudes) are smaller than a particular threshold, as determined by\\r\\nthe `dump.truncationThreshold` setting.\\r\\n\\r\\n**`dump.truncationThreshold`**\\r\\n\\r\\n**Value:** floating point number such as `0.001` or `1E-8` (default `1E-10`)\\r\\n\\r\\nIf `dump.truncateSmallAmplitudes` is set to `true`, determines the\\r\\nthreshold for measurement probabilities (i.e., squared amplitudes) below which to hide the display\\r\\nof basis states of a state vector.\\r\\n\\r\\n**`dump.phaseDisplayStyle`**\\r\\n\\r\\n**Value:** `\\\"ArrowOnly\\\"` (default), `\\\"NumberOnly\\\"`, `\\\"ArrowAndNumber\\\"`, or `\\\"None\\\"`\\r\\n\\r\\nConfigures the phase visualization style in output from callables such as\\r\\n`DumpMachine` or `DumpRegister`. Supports displaying phase as arrows, numbers (in radians), both, or neither.\\r\\n\\r\\n**`dump.measurementDisplayStyle`**\\r\\n\\r\\n**Value:** `\\\"NumberOnly\\\"`, `\\\"BarOnly\\\"`, `\\\"BarAndNumber\\\"` (default), or `\\\"None\\\"`\\r\\n\\r\\nConfigures the measurement probability visualization style in output of callables such as \\r\\n`DumpMachine` or `DumpRegister`. Supports displaying measurement probability as progress bars, numbers, both,\\r\\nor neither. \\r\\n\\r\\n**`dump.measurementDisplayPrecision`**\\r\\n\\r\\n**Value:** non-negative integer (default `4`)\\r\\n\\r\\nSets the precision of the measurement probability displayed as a percentage when\\r\\n`dump.measurementDisplayStyle` is set to `\\\"NumberOnly\\\"` or `\\\"BarAndNumber\\\"`.\\r\\n\\r\\n**`dump.measurementDisplayHistogram`**\\r\\n\\r\\n**Value:** `true` or `false` (default)\\r\\n\\r\\nIf `dump.measurementDisplayHistogram` is set to `true`, displays an interactive\\r\\nhistogram representation of the state of the simulator underneath the static state visualization.\\r\\n\\r\\n**`dump.plainTextOnly`**\\r\\n\\r\\n**Value:** `true` or `false` (default)\\r\\n\\r\\nForces plain-text output from callables such as `DumpMachine` and `DumpRegister`, even\\r\\nwhen using an HTML-enabled client such as Jupyter Notebook.\\r\\n\\r\\n**`trace.defaultDepth`**\\r\\n\\r\\n**Value:** positive integer (default `1`)\\r\\n\\r\\nConfigures the default depth used in the `%trace` command for visualizing Q# operations.\\r\\n\\r\\n**`trace.style`**\\r\\n\\r\\n**Value:** `\\\"Default\\\"` (default), `\\\"BlackAndWhite\\\"`, or `\\\"Inverted\\\"`\\r\\n\\r\\nConfigures the default style used in generating the visualization of Q# operations with the `%trace` command.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nPrint a list of all currently set configuration options:\\r\\n```\\r\\nIn []: %config\\r\\nOut[]: Configuration key Value\\r\\n --------------------------------- -----------\\r\\n dump.basisStateLabelingConvention \\\"BigEndian\\\"\\r\\n dump.truncateSmallAmplitudes true\\r\\n```\\r\\n \",\"\\r\\nConfigure the `DumpMachine` and `DumpRegister` callables\\r\\nto use big-endian convention:\\r\\n```\\r\\nIn []: %config dump.basisStateLabelingConvention=\\\"BigEndian\\\"\\r\\nOut[]: \\\"BigEndian\\\"\\r\\n```\\r\\n \",\"\\r\\nSave current configuration options to `.iqsharp-config.json`\\r\\nin the current working directory:\\r\\n```\\r\\nIn []: %config --save\\r\\nOut[]: \\r\\n```\\r\\nNote that options saved this way will be applied automatically\\r\\nthe next time a notebook in the current working\\r\\ndirectory is loaded.\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%debug\",\"Documentation\":{\"Summary\":\"Steps through the execution of a given Q# operation or function.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows for stepping through the execution of a given Q# operation\\r\\nor function using the QuantumSimulator.\\r\\n\\r\\n#### Required parameters\\r\\n\\r\\n- Q# operation or function name. This must be the first parameter, and must be a valid Q# operation\\r\\nor function name that has been defined either in the notebook or in a Q# file in the same folder.\\r\\n- Arguments for the Q# operation or function must also be specified as `key=value` pairs.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nStep through the execution of a Q# operation defined as `operation MyOperation() : Result`:\\r\\n```\\r\\nIn []: %debug MyOperation\\r\\nOut[]: \\r\\n```\\r\\n \",\"\\r\\nStep through the execution of a Q# operation defined as `operation MyOperation(a : Int, b : Int) : Result`:\\r\\n```\\r\\nIn []: %debug MyOperation a=5 b=10\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%estimate\",\"Documentation\":{\"Summary\":\"Runs a given function or operation on the ResourcesEstimator target machine.\",\"Full\":null,\"Description\":\"\\r\\nThe ResourcesEstimator estimates statistics about how many resources the given\\r\\noperation needs for execution. The resources it calculates include:\\r\\n\\r\\n- Counts for each primitive operation\\r\\n- Depth (lower bound for the T-gate depth of the quantum circuit)\\r\\n- Width (lower bound for the maximum number of qubits used for the computation)\\r\\n\\r\\nSee the [ResourcesEstimator user guide](https://docs.microsoft.com/azure/quantum/user-guide/machines/resources-estimator) to learn more.\\r\\n\\r\\n#### Required parameters\\r\\n\\r\\n- Q# operation or function name. This must be the first parameter, and must be a valid Q# operation\\r\\nor function name that has been defined either in the notebook or in a Q# file in the same folder.\\r\\n- Arguments for the Q# operation or function must also be specified as `key=value` pairs.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nEstimate resources for a Q# operation defined as `operation MyOperation() : Result`:\\r\\n```\\r\\nIn []: %estimate MyOperation\\r\\nOut[]: Metric Sum \\r\\n ---------------- ----\\r\\n CNOT 0\\r\\n QubitClifford 4\\r\\n R 0\\r\\n Measure 8\\r\\n T 0\\r\\n Depth 0\\r\\n Width 4\\r\\n BorrowedWidth 0\\r\\n```\\r\\n \",\"\\r\\nEstimate resources for a Q# operation defined as `operation MyOperation(a : Int, b : Int) : Result`:\\r\\n```\\r\\nIn []: %estimate MyOperation a=5 b=10\\r\\nOut[]: Metric Sum \\r\\n ---------------- ----\\r\\n CNOT 0\\r\\n QubitClifford 4\\r\\n R 0\\r\\n Measure 8\\r\\n T 0\\r\\n Depth 0\\r\\n Width 4\\r\\n BorrowedWidth 0\\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%experimental.build_info\",\"Documentation\":{\"Summary\":\"Reports build info for the experimental simulators.\",\"Full\":null,\"Description\":\"\\r\\n> **⚠ WARNING:** This magic command is **experimental**,\\r\\n> is not supported, and may be removed from future versions without notice.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nReturn the build info for experimental simulators:\\r\\n```\\r\\nIn []: %experimental.build_info\\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%experimental.noise_model\",\"Documentation\":{\"Summary\":\"Gets, sets, saves, or loads a noise model used in simulating quantum operations.\",\"Full\":null,\"Description\":\"\\r\\n> **⚠ WARNING:** This magic command is **experimental**,\\r\\n> is not supported, and may be removed from future versions without notice.\\r\\n\\r\\nThis magic command allows accessing or modifying the noise model used by\\r\\nthe `%experimental.simulate_noise` magic command.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nReturn the currently set noise model:\\r\\n```\\r\\nIn []: %experimental.noise_model\\r\\n```\\r\\n \",\"\\r\\n Return the built-in noise model with a given name:\\r\\n ```\\r\\n In []: %experimental.noise_model --get-by-name ideal\\r\\n ```\\r\\n \",\"\\r\\nSets the noise model to a built-in named noise model:\\r\\n```\\r\\nIn []: %experimental.noise_model --load-by-name ideal_stabilizer\\r\\n```\\r\\n \",\"\\r\\nSet the noise model to a noise model given as JSON:\\r\\n```\\r\\nIn []: %experimental.noise_model { ... }\\r\\n```\\r\\n \",\"\\r\\nSave the current noise model to a JSON file named\\r\\n`noise-model.json`:\\r\\n```\\r\\nIn []: %experimental.noise_model --save noise-model.json\\r\\n```\\r\\n \",\"\\r\\nLoad the noise model stored in `noise-model.json`,\\r\\nmaking it the active noise model:\\r\\n```\\r\\nIn []: %experimental.noise_model --load noise-model.json\\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%experimental.simulate_noise\",\"Documentation\":{\"Summary\":\"Runs a given function or operation on the OpenSystemsSimulator target machine.\",\"Full\":null,\"Description\":\"\\r\\n> **⚠ WARNING:** This magic command is **experimental**,\\r\\n> is not supported, and may be removed from future versions without notice.\\r\\n\\r\\nThis magic command allows executing a given function or operation\\r\\non the OpenSystemsSimulator target, simulating how that function or operation\\r\\nwill perform when run on noisy quantum hardware.\\r\\n\\r\\n#### See also\\r\\n\\r\\n- [`%config`](https://docs.microsoft.com/qsharp/api/iqsharp-magic/config)\\r\\n- [`%experimental.noise_model`](https://docs.microsoft.com/qsharp/api/iqsharp-magic/experimental.noise_model)\\r\\n\\r\\n#### Required parameters\\r\\n\\r\\n- Q# operation or function name. This must be the first parameter, and must be a valid Q# operation\\r\\nor function name that has been defined either in the notebook or in a Q# file in the same folder.\\r\\n- Arguments for the Q# operation or function must also be specified as `key=value` pairs.\\r\\n\\r\\n#### Remarks\\r\\n\\r\\nThe behavior of this magic command can be controlled through the `%experimental.noise_model` magic command,\\r\\nand the `opensim.nQubits` and `opensim.representation` configuration settings.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nSimulate a Q# operation defined as `operation MyOperation() : Result`:\\r\\n```\\r\\nIn []: %simulate MyOperation\\r\\nOut[]: \\r\\n```\\r\\n \",\"\\r\\nSimulate a Q# operation defined as `operation MyOperation(a : Int, b : Int) : Result`:\\r\\n```\\r\\nIn []: %simulate MyOperation a=5 b=10\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%lsmagic\",\"Documentation\":{\"Summary\":\"Returns a list of all currently available magic commands.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command lists all of the magic commands available in the IQ# kernel,\\r\\nas well as those defined in any packages that have been loaded in the current\\r\\nsession via the [`%package` magic command](https://docs.microsoft.com/qsharp/api/iqsharp-magic/package).\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nDisplay the list of available magic commands:\\r\\n```\\r\\nIn []: %lsmagic\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%lsopen\",\"Documentation\":{\"Summary\":\"Lists currently opened namespaces and their aliases.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command lists any namespaces that have been made\\r\\navailable using `open` statements, along with any aliases\\r\\nthat may have been assigned to those namespaces.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nPrint a list of all currently opened namespaces:\\r\\n```\\r\\nIn []: %lsopen\\r\\nOut[]: Namespace Alias\\r\\n ----------------------------- ----\\r\\n Microsoft.Quantum.Canon\\r\\n Microsoft.Quantum.Diagnostics Diag\\r\\n Microsoft.Quantum.Intrinsic\\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%package\",\"Documentation\":{\"Summary\":\"Provides the ability to load a NuGet package.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows for loading a NuGet package into the current IQ# kernel process.\\r\\nThe package must be available on the system's list of NuGet sources, which typically includes nuget.org.\\r\\nQ# operations, functions, and user-defined types defined in the loaded package,\\r\\nalong with functionality such as magic commands and result encoders,\\r\\nwill automatically become available for use in the current session.\\r\\n\\r\\nThe package can be specified by name only, or by name and version (using `name::version` syntax).\\r\\n\\r\\nIf no version is specified:\\r\\n\\r\\n- For packages that are part of the Microsoft Quantum Development Kit, IQ# will attempt to\\r\\nobtain the version of the package that matches the current IQ# version.\\r\\n- For other packages, IQ# will attempt to obtain the most recent version of the package.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nLoad the `Microsoft.Quantum.MachineLearning` package into the current IQ# session:\\r\\n```\\r\\nIn []: %package Microsoft.Quantum.MachineLearning\\r\\nOut[]: Adding package Microsoft.Quantum.MachineLearning: done!\\r\\n \\r\\n```\\r\\n \",\"\\r\\nLoad a specific version of the `Microsoft.Quantum.Katas` package into the current IQ# session:\\r\\n```\\r\\nIn []: %package Microsoft.Quantum.Katas::0.28.277227 Adding package Microsoft.Quantum.Katas::0.11.2006.403: done!\\r\\n \\r\\n```\\r\\n \",\"\\r\\nView the list of all packages that have been loaded into the current IQ# session:\\r\\n```\\r\\nIn []: %package\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%performance\",\"Documentation\":{\"Summary\":\"Reports current performance metrics for this kernel.\",\"Full\":null,\"Description\":\"\\r\\nReports various performance metrics for the current IQ# kernel process, including:\\r\\n\\r\\n- Managed RAM usage\\r\\n- Total RAM usage\\r\\n- Virtual memory size\\r\\n- User time\\r\\n- Total time\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nDisplay performance metrics for the current IQ# kernel process:\\r\\n```\\r\\nIn []: %performance\\r\\nOut[]: Metric Value\\r\\n ---------------------------- -------------\\r\\n Managed RAM usage (bytes) 4.985 MiB\\r\\n Total RAM usage (bytes) 54.543 MiB\\r\\n Virtual memory size (bytes) 2.005 TiB\\r\\n User time 00:00:01.109\\r\\n Total time 00:00:01.437\\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%project\",\"Documentation\":{\"Summary\":\"Provides the ability to view or add Q# project references.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows for adding references to Q# projects to be compiled and loaded\\r\\ninto the current IQ# session.\\r\\n\\r\\nThe command accepts a single argument, which is the path to a .csproj file to be loaded.\\r\\nThe .csproj file must reference the Microsoft.Quantum.Sdk. The provided path may be either\\r\\nan absolute path or a path relative to the current workspace root folder (usually the\\r\\nfolder containing the current .ipynb file). The project file will be added to the session\\r\\nand then the workspace will be reloaded, which will automatically load any downstream\\r\\npackages or projects referenced by the specified .csproj file and will recompile all\\r\\nassociated .qs source files.\\r\\n\\r\\nIf no argument is provided, the command simply returns the list of projects loaded in\\r\\nthe current IQ# session.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nAdd a reference to the `C:\\\\Projects\\\\MyProject.csproj` Q# project into the current IQ# session:\\r\\n```\\r\\nIn []: %project C:\\\\Projects\\\\MyProject.csproj\\r\\nOut[]: Loading project C:\\\\Projects\\\\MyProject.csproj and dependencies...\\r\\n \\r\\n```\\r\\n \",\"\\r\\nView the list of all Q# project references that have been loaded into the current IQ# session:\\r\\n```\\r\\nIn []: %project\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%simulate\",\"Documentation\":{\"Summary\":\"Runs a given function or operation on the QuantumSimulator target machine.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows executing a given function or operation on the QuantumSimulator, \\r\\nwhich performs a full-state simulation of the given function or operation\\r\\nand prints the resulting return value.\\r\\n\\r\\nSee the [QuantumSimulator user guide](https://docs.microsoft.com/azure/quantum/user-guide/machines/full-state-simulator) to learn more.\\r\\n\\r\\n#### Required parameters\\r\\n\\r\\n- Q# operation or function name. This must be the first parameter, and must be a valid Q# operation\\r\\nor function name that has been defined either in the notebook or in a Q# file in the same folder.\\r\\n- Arguments for the Q# operation or function must also be specified as `key=value` pairs.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nSimulate a Q# operation defined as `operation MyOperation() : Result`:\\r\\n```\\r\\nIn []: %simulate MyOperation\\r\\nOut[]: \\r\\n```\\r\\n \",\"\\r\\nSimulate a Q# operation defined as `operation MyOperation(a : Int, b : Int) : Result`:\\r\\n```\\r\\nIn []: %simulate MyOperation a=5 b=10\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%toffoli\",\"Documentation\":{\"Summary\":\"Runs a given function or operation on the ToffoliSimulator target machine.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows executing a given function or operation on the ToffoliSimulator, \\r\\nwhich performs a simulation of the given function or operation in which the state is always\\r\\na simple product state in the computational basis, and prints the resulting return value.\\r\\n\\r\\nSee the [ToffoliSimulator user guide](https://docs.microsoft.com/azure/quantum/user-guide/machines/toffoli-simulator) to learn more.\\r\\n\\r\\n#### Required parameters\\r\\n\\r\\n- Q# operation or function name. This must be the first parameter, and must be a valid Q# operation\\r\\nor function name that has been defined either in the notebook or in a Q# file in the same folder.\\r\\n- Arguments for the Q# operation or function must also be specified as `key=value` pairs.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nUse the ToffoliSimulator to simulate a Q# operation\\r\\ndefined as `operation MyOperation() : Result`:\\r\\n```\\r\\nIn []: %toffoli MyOperation\\r\\nOut[]: \\r\\n```\\r\\n \",\"\\r\\nUse the ToffoliSimulator to simulate a Q# operation\\r\\ndefined as `operation MyOperation(a : Int, b : Int) : Result`:\\r\\n```\\r\\nIn []: %toffoli MyOperation a=5 b=10\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%trace\",\"Documentation\":{\"Summary\":\"Visualizes the execution path of the given operation.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command renders an HTML-based visualization of a runtime execution path of the\\r\\ngiven operation using the QuantumSimulator.\\r\\n\\r\\n#### Required parameters\\r\\n\\r\\n- Q# operation or function name. This must be the first parameter, and must be a valid Q# operation\\r\\nor function name that has been defined either in the notebook or in a Q# file in the same folder.\\r\\n- Arguments for the Q# operation or function must also be specified as `key=value` pairs.\\r\\n\\r\\n#### Optional parameters\\r\\n\\r\\n- `--depth=` (default=1): The depth at which to render operations along\\r\\nthe execution path.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nVisualize the execution path of a Q# operation defined as `operation MyOperation() : Result`:\\r\\n```\\r\\nIn []: %trace MyOperation\\r\\nOut[]: \\r\\n```\\r\\n \",\"\\r\\nVisualize the execution path of a Q# operation defined as `operation MyOperation(a : Int, b : Int) : Result`:\\r\\n```\\r\\nIn []: %trace MyOperation a=5 b=10\\r\\nOut[]: \\r\\n```\\r\\n \",\"\\r\\nVisualize operations at depth 2 on the execution path of a Q# operation defined\\r\\nas `operation MyOperation() : Result`:\\r\\n```\\r\\nIn []: %trace MyOperation --depth=2\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%who\",\"Documentation\":{\"Summary\":\"Lists the Q# operations available in the current session.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command returns a list of Q# operations and functions that are available\\r\\nin the current IQ# session for use with magic commands such as `%simulate`\\r\\nand `%estimate`.\\r\\n\\r\\nThe list will include Q# operations and functions which have been defined interactively\\r\\nwithin cells in the current notebook (after the cells have been executed),\\r\\nas well as any Q# operations and functions defined within .qs files in the current folder.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nDisplay the list of Q# operations and functions available in the current session:\\r\\n```\\r\\nIn []: %who\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%workspace\",\"Documentation\":{\"Summary\":\"Provides actions related to the current workspace.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows for displaying and reloading the Q# operations and functions\\r\\ndefined within .qs files in the current folder.\\r\\n\\r\\nIf no parameters are provided, the command displays a list of Q# operations or functions\\r\\nwithin .qs files in the current folder which are available\\r\\nin the current IQ# session for use with magic commands such as `%simulate`\\r\\nand `%estimate`.\\r\\n\\r\\nThe command will also output any errors encountered while compiling the .qs files\\r\\nin the current folder.\\r\\n\\r\\n#### Optional parameters\\r\\n\\r\\n- `reload`: Causes the IQ# kernel to recompile all .qs files in the current folder.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nDisplay the list of Q# operations and functions available in the current folder:\\r\\n```\\r\\nIn []: %workspace\\r\\nOut[]: \\r\\n```\\r\\n \",\"\\r\\nRecompile the .qs files in the current folder:\\r\\n```\\r\\nIn []: %workspace reload\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"}]", + "application/x-qsharp-data": "[{\"Name\":\"%azure.connect\",\"Documentation\":{\"Summary\":\"Connects to an Azure Quantum workspace or displays current connection status.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows for connecting to an Azure Quantum workspace\\r\\nas specified by the resource ID and location of the workspace or by a combination of\\r\\nsubscription ID, resource group name, workspace name, and location.\\r\\n\\r\\nIf the connection is successful, a list of the available Q# execution targets\\r\\nin the Azure Quantum workspace will be displayed.\\r\\n\\r\\n#### Required parameters\\r\\n\\r\\nThe Azure Quantum workspace can be identified by resource ID:\\r\\n\\r\\n- `resourceId=`: The resource ID of the Azure Quantum workspace.\\r\\nThis can be obtained from the workspace page in the Azure portal. The `resourceId=` prefix\\r\\nis optional for this parameter, as long as the resource ID is valid.\\r\\n\\r\\nAlternatively, it can be identified by subscription ID, resource group name, and workspace name:\\r\\n\\r\\n- `subscription=`: The Azure subscription ID for the Azure Quantum workspace.\\r\\n- `resourceGroup=`: The Azure resource group name for the Azure Quantum workspace.\\r\\n- `workspace=`: The name of the Azure Quantum workspace.\\r\\n\\r\\nAlong with the identifiers above, a valid location is required.\\r\\n\\r\\n- `location=`: The Azure region where the Azure Quantum workspace is provisioned.\\r\\nThis may be specified as a region name such as `\\\"East US\\\"` or a location name such as `\\\"eastus\\\"`.\\r\\n\\r\\n#### Optional parameters\\r\\n\\r\\n- `storage=`: The connection string to the Azure storage\\r\\naccount. Required if the specified Azure Quantum workspace was not linked to a storage\\r\\naccount at workspace creation time.\\r\\n- `credential=`: The type of credentials to use to authenticate with Azure.\\r\\nNOTE: to authenticate we leverage the [Azure Identity library](https://docs.microsoft.com/dotnet/api/overview/azure/identity-readme), \\r\\nbased on this parameter we will create an instance of a Credential Class. \\r\\nPossible options are:\\r\\n * [Environment](https://docs.microsoft.com/dotnet/api/azure.identity.environmentcredential):\\r\\n Authenticates a service principal or user via credential information specified in environment variables.\\r\\n * [ManagedIdentity](https://docs.microsoft.com/dotnet/api/azure.identity.managedidentitycredential):\\r\\n Authenticates the managed identity of an azure resource.\\r\\n * [CLI](https://docs.microsoft.com/dotnet/api/azure.identity.azureclicredential):\\r\\n Authenticate in a development environment with the Azure CLI.\\r\\n * [SharedToken](https://docs.microsoft.com/dotnet/api/azure.identity.sharedtokencachecredential):\\r\\n Authenticate using tokens in the local cache shared between Microsoft applications.\\r\\n * [VisualStudio](https://docs.microsoft.com/dotnet/api/azure.identity.visualstudiocredential):\\r\\n Authenticate using data from Visual Studio.\\r\\n * [VisualStudioCode](https://docs.microsoft.com/dotnet/api/azure.identity.visualstudiocodecredential):\\r\\n Authenticate in a development environment with Visual Studio Code.\\r\\n * [Interactive](https://docs.microsoft.com/dotnet/api/azure.identity.interactivebrowsercredential):\\r\\n Opens a new browser window to interactively authenticate a user \\r\\n and obtain an access token.\\r\\n * [DeviceCode](https://docs.microsoft.com/dotnet/api/azure.identity.devicecodecredential):\\r\\n Authenticates a user using the device code flow to obtain an access token.\\r\\nIf not provided, it will try each credential type in order and pick the first one that can\\r\\nsuccesfully authenticate with Azure.\\r\\n\\r\\n#### Possible errors\\r\\n\\r\\n- `WorkspaceNotFound`: No Azure Quantum workspace was found that matches the specified criteria.\\r\\n- `AuthenticationFailed`: Failed to authenticate to the specified Azure Quantum workspace.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nConnect to an Azure Quantum workspace using its resource ID to the 'West Us' region:\\r\\n```\\r\\nIn []: %azure.connect \\\"/subscriptions/.../Microsoft.Quantum/Workspaces/WORKSPACE_NAME\\\" location=\\\"West US\\\"\\r\\nOut[]: Connected to Azure Quantum workspace WORKSPACE_NAME in location westus.\\r\\n \\r\\n```\\r\\n \",\"\\r\\nConnect to an Azure Quantum workspace using its resource ID, a storage account connection string, and a location:\\r\\n```\\r\\nIn []: %azure.connect resourceId=\\\"/subscriptions/.../Microsoft.Quantum/Workspaces/WORKSPACE_NAME\\\"\\r\\n storage=\\\"STORAGE_ACCOUNT_CONNECTION_STRING\\\"\\r\\n location=\\\"East US\\\"\\r\\nOut[]: Connected to Azure Quantum workspace WORKSPACE_NAME in location eastus.\\r\\n \\r\\n```\\r\\n \",\"\\r\\nConnect to an Azure Quantum workspace using individual subscription ID, resource group name, using a browser to prompt for user credentials with Azure:\\r\\n```\\r\\nIn []: %azure.connect subscription=\\\"SUBSCRIPTION_ID\\\"\\r\\n resourceGroup=\\\"RESOURCE_GROUP_NAME\\\"\\r\\n workspace=\\\"WORKSPACE_NAME\\\"\\r\\n location=\\\"West US\\\"\\r\\n credential=\\\"interactive\\\"\\r\\nOut[]: Connected to Azure Quantum workspace WORKSPACE_NAME in location westus.\\r\\n \\r\\n```\\r\\n \",\"\\r\\nPrint information about the currently-connected Azure Quantum workspace:\\r\\n```\\r\\nIn []: %azure.connect\\r\\nOut[]: Connected to Azure Quantum workspace WORKSPACE_NAME in location westus.\\r\\n \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.AzureClient\"},{\"Name\":\"%azure.execute\",\"Documentation\":{\"Summary\":\"Submits a job to an Azure Quantum workspace and waits for completion.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows for submitting a Q# operation or function\\r\\nto be run on the specified target in the current Azure Quantum workspace.\\r\\nThe command waits a specified amount of time for the job to complete before returning.\\r\\n\\r\\nThe Azure Quantum workspace must have been previously initialized\\r\\nusing the [`%azure.connect` magic command](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.connect),\\r\\nand an execution target for the job must have been specified using the\\r\\n[`%azure.target` magic command](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.target).\\r\\n\\r\\n#### Required parameters\\r\\n\\r\\n- Q# operation or function name. This must be the first parameter, and must be a valid Q# operation\\r\\nor function name that has been defined either in the notebook or in a Q# file in the same folder.\\r\\n- Arguments for the Q# operation or function must also be specified as `key=value` pairs.\\r\\n\\r\\n#### Optional parameters\\r\\n\\r\\n- `jobName=`: Friendly name to identify this job. If not specified,\\r\\nthe Q# operation or function name will be used as the job name.\\r\\n- `jobParams=`: Provider-specific job parameters\\r\\nexpressed in JSON as one or more `key`:`value` pairs to be passed to the execution target. Values must be strings.\\r\\n- `shots=` (default=500): Number of times to repeat execution of the\\r\\nspecified Q# operation or function.\\r\\n- `timeout=` (default=30): Time to wait (in seconds) for job completion\\r\\nbefore the magic command returns.\\r\\n- `poll=` (default=5): Interval (in seconds) to poll for\\r\\njob status while waiting for job execution to complete.\\r\\n\\r\\n#### Possible errors\\r\\n\\r\\n- `NotConnected`: Not connected to any Azure Quantum workspace.\\r\\n- `NoTarget`: No execution target has been configured for Azure Quantum job submission.\\r\\n- `NoOperationName`: No Q# operation name was specified for Azure Quantum job submission.\\r\\n- `InvalidTarget`: The specified execution target is not valid for Q# job submission in the current Azure Quantum workspace.\\r\\n- `UnrecognizedOperationName`: The specified Q# operation name was not recognized.\\r\\n- `InvalidEntryPoint`: The specified Q# operation cannot be used as an entry point for Azure Quantum job submission.\\r\\n- `JobSubmissionFailed`: Failed to submit the job to the Azure Quantum workspace.\\r\\n- `JobNotCompleted`: The specified Azure Quantum job has not yet completed.\\r\\n- `JobOutputDownloadFailed`: Failed to download results for the specified Azure Quantum job.\\r\\n- `JobFailedOrCancelled`: The specified Azure Quantum job failed or was cancelled.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nRun a Q# operation defined as `operation MyOperation(a : Int, b : Int) : Result`\\r\\non the active target in the current Azure Quantum workspace:\\r\\n```\\r\\nIn []: %azure.execute MyOperation a=5 b=10\\r\\nOut[]: Submitting MyOperation to target provider.qpu...\\r\\n Job successfully submitted for 500 shots.\\r\\n Job name: MyOperation\\r\\n Job ID: \\r\\n Waiting up to 30 seconds for Azure Quantum job to complete...\\r\\n [1:23:45 PM] Current job status: Waiting\\r\\n [1:23:50 PM] Current job status: Executing\\r\\n [1:23:55 PM] Current job status: Succeeded\\r\\n \\r\\n```\\r\\n \",\"\\r\\nRun a Q# operation defined as `operation MyOperation(a : Int, b : Int) : Result`\\r\\non the active target in the current Azure Quantum workspace,\\r\\nspecifying a custom job name, number of shots, timeout, polling interval, and provider-specific job parameters:\\r\\n```\\r\\nIn []: %azure.submit MyOperation a=5 b=10 jobName=\\\"My job\\\" shots=100 timeout=60 poll=10 jobParams={\\\"Key1\\\":\\\"Val1\\\",\\\"Key2\\\":\\\"Val2\\\"}\\r\\nOut[]: Submitting MyOperation to target provider.qpu...\\r\\n Job successfully submitted for 100 shots.\\r\\n Job name: My job\\r\\n Job ID: \\r\\n Waiting up to 60 seconds for Azure Quantum job to complete...\\r\\n [1:23:45 PM] Current job status: Waiting\\r\\n [1:23:55 PM] Current job status: Waiting\\r\\n [1:24:05 PM] Current job status: Executing\\r\\n [1:24:15 PM] Current job status: Succeeded\\r\\n \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.AzureClient\"},{\"Name\":\"%azure.jobs\",\"Documentation\":{\"Summary\":\"Displays a list of jobs in the current Azure Quantum workspace.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows for displaying the list of jobs in the current \\r\\nAzure Quantum workspace, optionally filtering the list to jobs which\\r\\nhave an ID, name, or target containing the provided filter parameter.\\r\\n\\r\\nThe Azure Quantum workspace must have been previously initialized\\r\\nusing the [`%azure.connect` magic command](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.connect).\\r\\n\\r\\n#### Optional parameters\\r\\n\\r\\n- A string to filter the list of jobs. Jobs which have an ID, name, or target\\r\\ncontaining the provided filter parameter will be displayed. If not specified,\\r\\nno job is filtered.\\r\\n- `count=` (default=30): The max number of jobs to return.\\r\\n\\r\\n#### Possible errors\\r\\n\\r\\n- `NotConnected`: Not connected to any Azure Quantum workspace.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nGet the list of jobs:\\r\\n```\\r\\nIn []: %azure.jobs\\r\\nOut[]: \\r\\n```\\r\\n \",\"\\r\\nGet the list of jobs whose ID, name, or target contains \\\"My job\\\":\\r\\n```\\r\\nIn []: %azure.jobs \\\"My job\\\"\\r\\nOut[]: \\r\\n```\\r\\n \",\"\\r\\nGet the list of jobs whose ID, name, or target contains \\\"My job\\\", limit it to at most 100 jobs:\\r\\n```\\r\\nIn []: %azure.jobs \\\"My job\\\" count=100\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.AzureClient\"},{\"Name\":\"%azure.output\",\"Documentation\":{\"Summary\":\"Displays results for a job in the current Azure Quantum workspace.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows for displaying results for a job in the current \\r\\nAzure Quantum workspace.\\r\\nThe job execution must already be completed in order to display\\r\\nresults.\\r\\n\\r\\nThe Azure Quantum workspace must have been previously initialized\\r\\nusing the [`%azure.connect` magic command](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.connect.\\r\\n\\r\\n#### Optional parameters\\r\\n\\r\\n- The job ID for which to display results. If not specified, the job ID from\\r\\nthe most recent call to [`%azure.submit`](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.submit\\r\\nor [`%azure.execute`](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.execute will be used.\\r\\n\\r\\n#### Possible errors\\r\\n\\r\\n- `NotConnected`: Not connected to any Azure Quantum workspace.\\r\\n- `JobNotFound`: No job with the given ID was found in the current Azure Quantum workspace.\\r\\n- `JobNotCompleted`: The specified Azure Quantum job has not yet completed.\\r\\n- `JobOutputDownloadFailed`: Failed to download results for the specified Azure Quantum job.\\r\\n- `JobFailedOrCancelled`: The specified Azure Quantum job failed or was cancelled.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nGet results of a specific job:\\r\\n```\\r\\nIn []: %azure.output JOB_ID\\r\\nOut[]: \\r\\n```\\r\\n \",\"\\r\\nGet results of the most recently submitted job:\\r\\n```\\r\\nIn []: %azure.output\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.AzureClient\"},{\"Name\":\"%azure.quotas\",\"Documentation\":{\"Summary\":\"Displays a list of quotas for the current Azure Quantum workspace.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows for displaying quota information for the current \\r\\nAzure Quantum workspace.\\r\\n\\r\\nThe Azure Quantum workspace must have been previously initialized\\r\\nusing the [`%azure.connect` magic command](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.connect).\\r\\n \\r\\n#### Possible errors\\r\\n\\r\\n- `NotConnected`: Not connected to any Azure Quantum workspace.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nGet the list of quotas:\\r\\n```\\r\\nIn []: %azure.quotas\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.AzureClient\"},{\"Name\":\"%azure.status\",\"Documentation\":{\"Summary\":\"Displays status for a job in the current Azure Quantum workspace.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows for displaying status for a job in the current \\r\\nAzure Quantum workspace.\\r\\n\\r\\nThe Azure Quantum workspace must have been previously initialized\\r\\nusing the [`%azure.connect` magic command](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.connect).\\r\\n\\r\\n#### Optional parameters\\r\\n\\r\\n- The job ID for which to display status. If not specified, the job ID from\\r\\nthe most recent call to [`%azure.submit`](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.submit)\\r\\nor [`%azure.execute`](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.execute) will be used.\\r\\n\\r\\n#### Possible errors\\r\\n\\r\\n- `NotConnected`: Not connected to any Azure Quantum workspace.\\r\\n- `JobNotFound`: No job with the given ID was found in the current Azure Quantum workspace.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nGet the status of a specific job:\\r\\n```\\r\\nIn []: %azure.status JOB_ID\\r\\nOut[]: \\r\\n```\\r\\n \",\"\\r\\nGet the status of the most recently submitted job:\\r\\n```\\r\\nIn []: %azure.status\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.AzureClient\"},{\"Name\":\"%azure.submit\",\"Documentation\":{\"Summary\":\"Submits a job to an Azure Quantum workspace.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows for submitting a Q# operation or function\\r\\nto be run on the specified target in the current Azure Quantum workspace.\\r\\nThe command returns immediately after the job is submitted.\\r\\n\\r\\nThe Azure Quantum workspace must have been previously initialized\\r\\nusing the [`%azure.connect` magic command](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.connect),\\r\\nand an execution target for the job must have been specified using the\\r\\n[`%azure.target` magic command](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.target).\\r\\n\\r\\n#### Required parameters\\r\\n\\r\\n- Q# operation or function name. This must be the first parameter, and must be a valid Q# operation\\r\\nor function name that has been defined either in the notebook or in a Q# file in the same folder.\\r\\n- Arguments for the Q# operation or function must also be specified as `key=value` pairs.\\r\\n\\r\\n#### Optional parameters\\r\\n\\r\\n- `jobName=`: Friendly name to identify this job. If not specified,\\r\\nthe Q# operation or function name will be used as the job name.\\r\\n- `jobParams=`: Provider-specific job parameters\\r\\nexpressed in JSON as one or more `key`:`value` pairs to be passed to the execution target. Values must be strings.\\r\\n- `shots=` (default=500): Number of times to repeat execution of the\\r\\nspecified Q# operation or function.\\r\\n\\r\\n#### Possible errors\\r\\n\\r\\n- `NotConnected`: Not connected to any Azure Quantum workspace.\\r\\n- `NoTarget`: No execution target has been configured for Azure Quantum job submission.\\r\\n- `NoOperationName`: No Q# operation name was specified for Azure Quantum job submission.\\r\\n- `InvalidTarget`: The specified execution target is not valid for Q# job submission in the current Azure Quantum workspace.\\r\\n- `UnrecognizedOperationName`: The specified Q# operation name was not recognized.\\r\\n- `InvalidEntryPoint`: The specified Q# operation cannot be used as an entry point for Azure Quantum job submission.\\r\\n- `JobSubmissionFailed`: Failed to submit the job to the Azure Quantum workspace.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nSubmit a Q# operation defined as `operation MyOperation(a : Int, b : Int) : Result`\\r\\nfor execution on the active target in the current Azure Quantum workspace:\\r\\n```\\r\\nIn []: %azure.submit MyOperation a=5 b=10\\r\\nOut[]: Submitting MyOperation to target provider.qpu...\\r\\n Job successfully submitted for 500 shots.\\r\\n Job name: MyOperation\\r\\n Job ID: \\r\\n \\r\\n```\\r\\n \",\"\\r\\nSubmit a Q# operation defined as `operation MyOperation(a : Int, b : Int) : Result`\\r\\nfor execution on the active target in the current Azure Quantum workspace,\\r\\nspecifying a custom job name, number of shots, and provider-specific job parameters:\\r\\n```\\r\\nIn []: %azure.submit MyOperation a=5 b=10 jobName=\\\"My job\\\" shots=100 jobParams={\\\"Key1\\\":\\\"Val1\\\",\\\"Key2\\\":\\\"Val2\\\"}\\r\\nOut[]: Submitting MyOperation to target provider.qpu...\\r\\n Job successfully submitted for 100 shots.\\r\\n Job name: My job\\r\\n Job ID: \\r\\n \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.AzureClient\"},{\"Name\":\"%azure.target\",\"Documentation\":{\"Summary\":\"Sets or displays the active execution target for Q# job submission in an Azure Quantum workspace.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows for specifying or displaying the execution target for Q# job submission\\r\\nin an Azure Quantum workspace.\\r\\n\\r\\nThe Azure Quantum workspace must have been previously initialized\\r\\nusing the [`%azure.connect` magic command](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.connect)\\r\\nmagic command. The specified execution target must be available in the workspace and support execution of Q# programs.\\r\\n\\r\\n#### Optional parameters\\r\\n\\r\\n- The target ID to set as the active execution target for Q# job submission. If not specified,\\r\\nthe currently active execution target is displayed.\\r\\n\\r\\n#### Possible errors\\r\\n\\r\\n- `NotConnected`: Not connected to any Azure Quantum workspace.\\r\\n- `InvalidTarget`: The specified execution target is not valid for Q# job submission in the current Azure Quantum workspace.\\r\\n- `NoTarget`: No execution target has been configured for Azure Quantum job submission.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nSet the current target for Q# job submission to `provider.qpu`:\\r\\n```\\r\\nIn []: %azure.target provider.qpu\\r\\nOut[]: Loading package Microsoft.Quantum.Providers.Provider and dependencies...\\r\\n Active target is now provider.qpu\\r\\n \\r\\n```\\r\\n \",\"\\r\\nDisplay the current target and all available targets in the current Azure Quantum workspace:\\r\\n```\\r\\nIn []: %azure.target\\r\\nOut[]: Current execution target: provider.qpu\\r\\n Available execution targets: provider.qpu, provider.simulator\\r\\n \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.AzureClient\"},{\"Name\":\"%config\",\"Documentation\":{\"Summary\":\"Allows setting or querying configuration options.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows for setting or querying\\r\\nconfiguration options used to control the behavior of the\\r\\nIQ# kernel (such as state visualization options). It also\\r\\nallows for saving those options to a JSON file in the current\\r\\nworking directory (using the `--save` option).\\r\\n\\r\\n#### Configuration settings\\r\\n\\r\\n**`dump.basisStateLabelingConvention`**\\r\\n\\r\\n**Value:** `\\\"LittleEndian\\\"` (default), `\\\"BigEndian\\\"`, or `\\\"Bitstring\\\"`\\r\\n\\r\\nThe convention to be used when labeling computational\\r\\nbasis states in output from callables such as `DumpMachine` or `DumpRegister`.\\r\\n\\r\\n**`dump.truncateSmallAmplitudes`**\\r\\n\\r\\n**Value:** `true` or `false` (default)\\r\\n\\r\\nHides basis states of a state vector whose measurement probabilities\\r\\n(i.e., squared amplitudes) are smaller than a particular threshold, as determined by\\r\\nthe `dump.truncationThreshold` setting.\\r\\n\\r\\n**`dump.truncationThreshold`**\\r\\n\\r\\n**Value:** floating point number such as `0.001` or `1E-8` (default `1E-10`)\\r\\n\\r\\nIf `dump.truncateSmallAmplitudes` is set to `true`, determines the\\r\\nthreshold for measurement probabilities (i.e., squared amplitudes) below which to hide the display\\r\\nof basis states of a state vector.\\r\\n\\r\\n**`dump.phaseDisplayStyle`**\\r\\n\\r\\n**Value:** `\\\"ArrowOnly\\\"` (default), `\\\"NumberOnly\\\"`, `\\\"ArrowAndNumber\\\"`, or `\\\"None\\\"`\\r\\n\\r\\nConfigures the phase visualization style in output from callables such as\\r\\n`DumpMachine` or `DumpRegister`. Supports displaying phase as arrows, numbers (in radians), both, or neither.\\r\\n\\r\\n**`dump.measurementDisplayStyle`**\\r\\n\\r\\n**Value:** `\\\"NumberOnly\\\"`, `\\\"BarOnly\\\"`, `\\\"BarAndNumber\\\"` (default), or `\\\"None\\\"`\\r\\n\\r\\nConfigures the measurement probability visualization style in output of callables such as \\r\\n`DumpMachine` or `DumpRegister`. Supports displaying measurement probability as progress bars, numbers, both,\\r\\nor neither. \\r\\n\\r\\n**`dump.measurementDisplayPrecision`**\\r\\n\\r\\n**Value:** non-negative integer (default `4`)\\r\\n\\r\\nSets the precision of the measurement probability displayed as a percentage when\\r\\n`dump.measurementDisplayStyle` is set to `\\\"NumberOnly\\\"` or `\\\"BarAndNumber\\\"`.\\r\\n\\r\\n**`dump.measurementDisplayHistogram`**\\r\\n\\r\\n**Value:** `true` or `false` (default)\\r\\n\\r\\nIf `dump.measurementDisplayHistogram` is set to `true`, displays an interactive\\r\\nhistogram representation of the state of the simulator underneath the static state visualization.\\r\\n\\r\\n**`dump.plainTextOnly`**\\r\\n\\r\\n**Value:** `true` or `false` (default)\\r\\n\\r\\nForces plain-text output from callables such as `DumpMachine` and `DumpRegister`, even\\r\\nwhen using an HTML-enabled client such as Jupyter Notebook.\\r\\n\\r\\n**`trace.defaultDepth`**\\r\\n\\r\\n**Value:** positive integer (default `1`)\\r\\n\\r\\nConfigures the default depth used in the `%trace` command for visualizing Q# operations.\\r\\n\\r\\n**`trace.style`**\\r\\n\\r\\n**Value:** `\\\"Default\\\"` (default), `\\\"BlackAndWhite\\\"`, or `\\\"Inverted\\\"`\\r\\n\\r\\nConfigures the default style used in generating the visualization of Q# operations with the `%trace` command.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nPrint a list of all currently set configuration options:\\r\\n```\\r\\nIn []: %config\\r\\nOut[]: Configuration key Value\\r\\n --------------------------------- -----------\\r\\n dump.basisStateLabelingConvention \\\"BigEndian\\\"\\r\\n dump.truncateSmallAmplitudes true\\r\\n```\\r\\n \",\"\\r\\nConfigure the `DumpMachine` and `DumpRegister` callables\\r\\nto use big-endian convention:\\r\\n```\\r\\nIn []: %config dump.basisStateLabelingConvention=\\\"BigEndian\\\"\\r\\nOut[]: \\\"BigEndian\\\"\\r\\n```\\r\\n \",\"\\r\\nSave current configuration options to `.iqsharp-config.json`\\r\\nin the current working directory:\\r\\n```\\r\\nIn []: %config --save\\r\\nOut[]: \\r\\n```\\r\\nNote that options saved this way will be applied automatically\\r\\nthe next time a notebook in the current working\\r\\ndirectory is loaded.\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%debug\",\"Documentation\":{\"Summary\":\"Steps through the execution of a given Q# operation or function.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows for stepping through the execution of a given Q# operation\\r\\nor function using the QuantumSimulator.\\r\\n\\r\\n#### Required parameters\\r\\n\\r\\n- Q# operation or function name. This must be the first parameter, and must be a valid Q# operation\\r\\nor function name that has been defined either in the notebook or in a Q# file in the same folder.\\r\\n- Arguments for the Q# operation or function must also be specified as `key=value` pairs.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nStep through the execution of a Q# operation defined as `operation MyOperation() : Result`:\\r\\n```\\r\\nIn []: %debug MyOperation\\r\\nOut[]: \\r\\n```\\r\\n \",\"\\r\\nStep through the execution of a Q# operation defined as `operation MyOperation(a : Int, b : Int) : Result`:\\r\\n```\\r\\nIn []: %debug MyOperation a=5 b=10\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%estimate\",\"Documentation\":{\"Summary\":\"Runs a given function or operation on the ResourcesEstimator target machine.\",\"Full\":null,\"Description\":\"\\r\\nThe ResourcesEstimator estimates statistics about how many resources the given\\r\\noperation needs for execution. The resources it calculates include:\\r\\n\\r\\n- Counts for each primitive operation\\r\\n- Depth (lower bound for the T-gate depth of the quantum circuit)\\r\\n- Width (lower bound for the maximum number of qubits used for the computation)\\r\\n\\r\\nSee the [ResourcesEstimator user guide](https://docs.microsoft.com/azure/quantum/user-guide/machines/resources-estimator) to learn more.\\r\\n\\r\\n#### Required parameters\\r\\n\\r\\n- Q# operation or function name. This must be the first parameter, and must be a valid Q# operation\\r\\nor function name that has been defined either in the notebook or in a Q# file in the same folder.\\r\\n- Arguments for the Q# operation or function must also be specified as `key=value` pairs.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nEstimate resources for a Q# operation defined as `operation MyOperation() : Result`:\\r\\n```\\r\\nIn []: %estimate MyOperation\\r\\nOut[]: Metric Sum \\r\\n ---------------- ----\\r\\n CNOT 0\\r\\n QubitClifford 4\\r\\n R 0\\r\\n Measure 8\\r\\n T 0\\r\\n Depth 0\\r\\n Width 4\\r\\n BorrowedWidth 0\\r\\n```\\r\\n \",\"\\r\\nEstimate resources for a Q# operation defined as `operation MyOperation(a : Int, b : Int) : Result`:\\r\\n```\\r\\nIn []: %estimate MyOperation a=5 b=10\\r\\nOut[]: Metric Sum \\r\\n ---------------- ----\\r\\n CNOT 0\\r\\n QubitClifford 4\\r\\n R 0\\r\\n Measure 8\\r\\n T 0\\r\\n Depth 0\\r\\n Width 4\\r\\n BorrowedWidth 0\\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%experimental.build_info\",\"Documentation\":{\"Summary\":\"Reports build info for the experimental simulators.\",\"Full\":null,\"Description\":\"\\r\\n> **⚠ WARNING:** This magic command is **experimental**,\\r\\n> is not supported, and may be removed from future versions without notice.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nReturn the build info for experimental simulators:\\r\\n```\\r\\nIn []: %experimental.build_info\\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%experimental.noise_model\",\"Documentation\":{\"Summary\":\"Gets, sets, saves, or loads a noise model used in simulating quantum operations.\",\"Full\":null,\"Description\":\"\\r\\n> **⚠ WARNING:** This magic command is **experimental**,\\r\\n> is not supported, and may be removed from future versions without notice.\\r\\n\\r\\nThis magic command allows accessing or modifying the noise model used by\\r\\nthe `%experimental.simulate_noise` magic command.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nReturn the currently set noise model:\\r\\n```\\r\\nIn []: %experimental.noise_model\\r\\n```\\r\\n \",\"\\r\\n Return the built-in noise model with a given name:\\r\\n ```\\r\\n In []: %experimental.noise_model --get-by-name ideal\\r\\n ```\\r\\n \",\"\\r\\nSets the noise model to a built-in named noise model:\\r\\n```\\r\\nIn []: %experimental.noise_model --load-by-name ideal_stabilizer\\r\\n```\\r\\n \",\"\\r\\nSet the noise model to a noise model given as JSON:\\r\\n```\\r\\nIn []: %experimental.noise_model { ... }\\r\\n```\\r\\n \",\"\\r\\nSave the current noise model to a JSON file named\\r\\n`noise-model.json`:\\r\\n```\\r\\nIn []: %experimental.noise_model --save noise-model.json\\r\\n```\\r\\n \",\"\\r\\nLoad the noise model stored in `noise-model.json`,\\r\\nmaking it the active noise model:\\r\\n```\\r\\nIn []: %experimental.noise_model --load noise-model.json\\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%experimental.simulate_noise\",\"Documentation\":{\"Summary\":\"Runs a given function or operation on the OpenSystemsSimulator target machine.\",\"Full\":null,\"Description\":\"\\r\\n> **⚠ WARNING:** This magic command is **experimental**,\\r\\n> is not supported, and may be removed from future versions without notice.\\r\\n\\r\\nThis magic command allows executing a given function or operation\\r\\non the OpenSystemsSimulator target, simulating how that function or operation\\r\\nwill perform when run on noisy quantum hardware.\\r\\n\\r\\n#### See also\\r\\n\\r\\n- [`%config`](https://docs.microsoft.com/qsharp/api/iqsharp-magic/config)\\r\\n- [`%experimental.noise_model`](https://docs.microsoft.com/qsharp/api/iqsharp-magic/experimental.noise_model)\\r\\n\\r\\n#### Required parameters\\r\\n\\r\\n- Q# operation or function name. This must be the first parameter, and must be a valid Q# operation\\r\\nor function name that has been defined either in the notebook or in a Q# file in the same folder.\\r\\n- Arguments for the Q# operation or function must also be specified as `key=value` pairs.\\r\\n\\r\\n#### Remarks\\r\\n\\r\\nThe behavior of this magic command can be controlled through the `%experimental.noise_model` magic command,\\r\\nand the `opensim.nQubits` and `opensim.representation` configuration settings.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nSimulate a Q# operation defined as `operation MyOperation() : Result`:\\r\\n```\\r\\nIn []: %simulate MyOperation\\r\\nOut[]: \\r\\n```\\r\\n \",\"\\r\\nSimulate a Q# operation defined as `operation MyOperation(a : Int, b : Int) : Result`:\\r\\n```\\r\\nIn []: %simulate MyOperation a=5 b=10\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%lsmagic\",\"Documentation\":{\"Summary\":\"Returns a list of all currently available magic commands.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command lists all of the magic commands available in the IQ# kernel,\\r\\nas well as those defined in any packages that have been loaded in the current\\r\\nsession via the [`%package` magic command](https://docs.microsoft.com/qsharp/api/iqsharp-magic/package).\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nDisplay the list of available magic commands:\\r\\n```\\r\\nIn []: %lsmagic\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%lsopen\",\"Documentation\":{\"Summary\":\"Lists currently opened namespaces and their aliases.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command lists any namespaces that have been made\\r\\navailable using `open` statements, along with any aliases\\r\\nthat may have been assigned to those namespaces.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nPrint a list of all currently opened namespaces:\\r\\n```\\r\\nIn []: %lsopen\\r\\nOut[]: Namespace Alias\\r\\n ----------------------------- ----\\r\\n Microsoft.Quantum.Canon\\r\\n Microsoft.Quantum.Diagnostics Diag\\r\\n Microsoft.Quantum.Intrinsic\\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%package\",\"Documentation\":{\"Summary\":\"Provides the ability to load a NuGet package.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows for loading a NuGet package into the current IQ# kernel process.\\r\\nThe package must be available on the system's list of NuGet sources, which typically includes nuget.org.\\r\\nQ# operations, functions, and user-defined types defined in the loaded package,\\r\\nalong with functionality such as magic commands and result encoders,\\r\\nwill automatically become available for use in the current session.\\r\\n\\r\\nThe package can be specified by name only, or by name and version (using `name::version` syntax).\\r\\n\\r\\nIf no version is specified:\\r\\n\\r\\n- For packages that are part of the Microsoft Quantum Development Kit, IQ# will attempt to\\r\\nobtain the version of the package that matches the current IQ# version.\\r\\n- For other packages, IQ# will attempt to obtain the most recent version of the package.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nLoad the `Microsoft.Quantum.MachineLearning` package into the current IQ# session:\\r\\n```\\r\\nIn []: %package Microsoft.Quantum.MachineLearning\\r\\nOut[]: Adding package Microsoft.Quantum.MachineLearning: done!\\r\\n \\r\\n```\\r\\n \",\"\\r\\nLoad a specific version of the `Microsoft.Quantum.Katas` package into the current IQ# session:\\r\\n```\\r\\nIn []: %package Microsoft.Quantum.Katas::0.28.291394 Adding package Microsoft.Quantum.Katas::0.11.2006.403: done!\\r\\n \\r\\n```\\r\\n \",\"\\r\\nView the list of all packages that have been loaded into the current IQ# session:\\r\\n```\\r\\nIn []: %package\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%performance\",\"Documentation\":{\"Summary\":\"Reports current performance metrics for this kernel.\",\"Full\":null,\"Description\":\"\\r\\nReports various performance metrics for the current IQ# kernel process, including:\\r\\n\\r\\n- Managed RAM usage\\r\\n- Total RAM usage\\r\\n- Virtual memory size\\r\\n- User time\\r\\n- Total time\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nDisplay performance metrics for the current IQ# kernel process:\\r\\n```\\r\\nIn []: %performance\\r\\nOut[]: Metric Value\\r\\n ---------------------------- -------------\\r\\n Managed RAM usage (bytes) 4.985 MiB\\r\\n Total RAM usage (bytes) 54.543 MiB\\r\\n Virtual memory size (bytes) 2.005 TiB\\r\\n User time 00:00:01.109\\r\\n Total time 00:00:01.437\\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%project\",\"Documentation\":{\"Summary\":\"Provides the ability to view or add Q# project references.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows for adding references to Q# projects to be compiled and loaded\\r\\ninto the current IQ# session.\\r\\n\\r\\nThe command accepts a single argument, which is the path to a .csproj file to be loaded.\\r\\nThe .csproj file must reference the Microsoft.Quantum.Sdk. The provided path may be either\\r\\nan absolute path or a path relative to the current workspace root folder (usually the\\r\\nfolder containing the current .ipynb file). The project file will be added to the session\\r\\nand then the workspace will be reloaded, which will automatically load any downstream\\r\\npackages or projects referenced by the specified .csproj file and will recompile all\\r\\nassociated .qs source files.\\r\\n\\r\\nIf no argument is provided, the command simply returns the list of projects loaded in\\r\\nthe current IQ# session.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nAdd a reference to the `C:\\\\Projects\\\\MyProject.csproj` Q# project into the current IQ# session:\\r\\n```\\r\\nIn []: %project C:\\\\Projects\\\\MyProject.csproj\\r\\nOut[]: Loading project C:\\\\Projects\\\\MyProject.csproj and dependencies...\\r\\n \\r\\n```\\r\\n \",\"\\r\\nView the list of all Q# project references that have been loaded into the current IQ# session:\\r\\n```\\r\\nIn []: %project\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%simulate\",\"Documentation\":{\"Summary\":\"Runs a given function or operation on the QuantumSimulator target machine.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows executing a given function or operation on the QuantumSimulator, \\r\\nwhich performs a full-state simulation of the given function or operation\\r\\nand prints the resulting return value.\\r\\n\\r\\nSee the [QuantumSimulator user guide](https://docs.microsoft.com/azure/quantum/user-guide/machines/full-state-simulator) to learn more.\\r\\n\\r\\n#### Required parameters\\r\\n\\r\\n- Q# operation or function name. This must be the first parameter, and must be a valid Q# operation\\r\\nor function name that has been defined either in the notebook or in a Q# file in the same folder.\\r\\n- Arguments for the Q# operation or function must also be specified as `key=value` pairs.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nSimulate a Q# operation defined as `operation MyOperation() : Result`:\\r\\n```\\r\\nIn []: %simulate MyOperation\\r\\nOut[]: \\r\\n```\\r\\n \",\"\\r\\nSimulate a Q# operation defined as `operation MyOperation(a : Int, b : Int) : Result`:\\r\\n```\\r\\nIn []: %simulate MyOperation a=5 b=10\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%toffoli\",\"Documentation\":{\"Summary\":\"Runs a given function or operation on the ToffoliSimulator target machine.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows executing a given function or operation on the ToffoliSimulator, \\r\\nwhich performs a simulation of the given function or operation in which the state is always\\r\\na simple product state in the computational basis, and prints the resulting return value.\\r\\n\\r\\nSee the [ToffoliSimulator user guide](https://docs.microsoft.com/azure/quantum/user-guide/machines/toffoli-simulator) to learn more.\\r\\n\\r\\n#### Required parameters\\r\\n\\r\\n- Q# operation or function name. This must be the first parameter, and must be a valid Q# operation\\r\\nor function name that has been defined either in the notebook or in a Q# file in the same folder.\\r\\n- Arguments for the Q# operation or function must also be specified as `key=value` pairs.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nUse the ToffoliSimulator to simulate a Q# operation\\r\\ndefined as `operation MyOperation() : Result`:\\r\\n```\\r\\nIn []: %toffoli MyOperation\\r\\nOut[]: \\r\\n```\\r\\n \",\"\\r\\nUse the ToffoliSimulator to simulate a Q# operation\\r\\ndefined as `operation MyOperation(a : Int, b : Int) : Result`:\\r\\n```\\r\\nIn []: %toffoli MyOperation a=5 b=10\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%trace\",\"Documentation\":{\"Summary\":\"Visualizes the execution path of the given operation.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command renders an HTML-based visualization of a runtime execution path of the\\r\\ngiven operation using the QuantumSimulator.\\r\\n\\r\\n#### Required parameters\\r\\n\\r\\n- Q# operation or function name. This must be the first parameter, and must be a valid Q# operation\\r\\nor function name that has been defined either in the notebook or in a Q# file in the same folder.\\r\\n- Arguments for the Q# operation or function must also be specified as `key=value` pairs.\\r\\n\\r\\n#### Optional parameters\\r\\n\\r\\n- `--depth=` (default=1): The depth at which to render operations along\\r\\nthe execution path.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nVisualize the execution path of a Q# operation defined as `operation MyOperation() : Result`:\\r\\n```\\r\\nIn []: %trace MyOperation\\r\\nOut[]: \\r\\n```\\r\\n \",\"\\r\\nVisualize the execution path of a Q# operation defined as `operation MyOperation(a : Int, b : Int) : Result`:\\r\\n```\\r\\nIn []: %trace MyOperation a=5 b=10\\r\\nOut[]: \\r\\n```\\r\\n \",\"\\r\\nVisualize operations at depth 2 on the execution path of a Q# operation defined\\r\\nas `operation MyOperation() : Result`:\\r\\n```\\r\\nIn []: %trace MyOperation --depth=2\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%who\",\"Documentation\":{\"Summary\":\"Lists the Q# operations available in the current session.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command returns a list of Q# operations and functions that are available\\r\\nin the current IQ# session for use with magic commands such as `%simulate`\\r\\nand `%estimate`.\\r\\n\\r\\nThe list will include Q# operations and functions which have been defined interactively\\r\\nwithin cells in the current notebook (after the cells have been executed),\\r\\nas well as any Q# operations and functions defined within .qs files in the current folder.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nDisplay the list of Q# operations and functions available in the current session:\\r\\n```\\r\\nIn []: %who\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"},{\"Name\":\"%workspace\",\"Documentation\":{\"Summary\":\"Provides actions related to the current workspace.\",\"Full\":null,\"Description\":\"\\r\\nThis magic command allows for displaying and reloading the Q# operations and functions\\r\\ndefined within .qs files in the current folder.\\r\\n\\r\\nIf no parameters are provided, the command displays a list of Q# operations or functions\\r\\nwithin .qs files in the current folder which are available\\r\\nin the current IQ# session for use with magic commands such as `%simulate`\\r\\nand `%estimate`.\\r\\n\\r\\nThe command will also output any errors encountered while compiling the .qs files\\r\\nin the current folder.\\r\\n\\r\\n#### Optional parameters\\r\\n\\r\\n- `reload`: Causes the IQ# kernel to recompile all .qs files in the current folder.\\r\\n \",\"Remarks\":null,\"Examples\":[\"\\r\\nDisplay the list of Q# operations and functions available in the current folder:\\r\\n```\\r\\nIn []: %workspace\\r\\nOut[]: \\r\\n```\\r\\n \",\"\\r\\nRecompile the .qs files in the current folder:\\r\\n```\\r\\nIn []: %workspace reload\\r\\nOut[]: \\r\\n```\\r\\n \"],\"SeeAlso\":null},\"AssemblyName\":\"Microsoft.Quantum.IQSharp.Kernel\"}]", "text/html": [ "
NameSummaryAssembly
%azure.connectConnects to an Azure Quantum workspace or displays current connection status.Microsoft.Quantum.IQSharp.AzureClient
%azure.executeSubmits a job to an Azure Quantum workspace and waits for completion.Microsoft.Quantum.IQSharp.AzureClient
%azure.jobsDisplays a list of jobs in the current Azure Quantum workspace.Microsoft.Quantum.IQSharp.AzureClient
%azure.outputDisplays results for a job in the current Azure Quantum workspace.Microsoft.Quantum.IQSharp.AzureClient
%azure.quotasDisplays a list of quotas for the current Azure Quantum workspace.Microsoft.Quantum.IQSharp.AzureClient
%azure.statusDisplays status for a job in the current Azure Quantum workspace.Microsoft.Quantum.IQSharp.AzureClient
%azure.submitSubmits a job to an Azure Quantum workspace.Microsoft.Quantum.IQSharp.AzureClient
%azure.targetSets or displays the active execution target for Q# job submission in an Azure Quantum workspace.Microsoft.Quantum.IQSharp.AzureClient
%configAllows setting or querying configuration options.Microsoft.Quantum.IQSharp.Kernel
%debugSteps through the execution of a given Q# operation or function.Microsoft.Quantum.IQSharp.Kernel
%estimateRuns a given function or operation on the ResourcesEstimator target machine.Microsoft.Quantum.IQSharp.Kernel
%experimental.build_infoReports build info for the experimental simulators.Microsoft.Quantum.IQSharp.Kernel
%experimental.noise_modelGets, sets, saves, or loads a noise model used in simulating quantum operations.Microsoft.Quantum.IQSharp.Kernel
%experimental.simulate_noiseRuns a given function or operation on the OpenSystemsSimulator target machine.Microsoft.Quantum.IQSharp.Kernel
%lsmagicReturns a list of all currently available magic commands.Microsoft.Quantum.IQSharp.Kernel
%lsopenLists currently opened namespaces and their aliases.Microsoft.Quantum.IQSharp.Kernel
%packageProvides the ability to load a NuGet package.Microsoft.Quantum.IQSharp.Kernel
%performanceReports current performance metrics for this kernel.Microsoft.Quantum.IQSharp.Kernel
%projectProvides the ability to view or add Q# project references.Microsoft.Quantum.IQSharp.Kernel
%simulateRuns a given function or operation on the QuantumSimulator target machine.Microsoft.Quantum.IQSharp.Kernel
%toffoliRuns a given function or operation on the ToffoliSimulator target machine.Microsoft.Quantum.IQSharp.Kernel
%traceVisualizes the execution path of the given operation.Microsoft.Quantum.IQSharp.Kernel
%whoLists the Q# operations available in the current session.Microsoft.Quantum.IQSharp.Kernel
%workspaceProvides actions related to the current workspace.Microsoft.Quantum.IQSharp.Kernel
" ], diff --git a/samples/azure-quantum/resource-estimation/integer-factorization-with-cli/integer-factorization.csproj b/samples/azure-quantum/resource-estimation/integer-factorization-with-cli/integer-factorization.csproj index e24cc9e337eb..7e21f365ef89 100644 --- a/samples/azure-quantum/resource-estimation/integer-factorization-with-cli/integer-factorization.csproj +++ b/samples/azure-quantum/resource-estimation/integer-factorization-with-cli/integer-factorization.csproj @@ -1,4 +1,4 @@ - + Exe @@ -6,7 +6,7 @@ - + diff --git a/samples/azure-quantum/teleport/Teleport.csproj b/samples/azure-quantum/teleport/Teleport.csproj index 3d46f6a8de4f..968032eb43e5 100644 --- a/samples/azure-quantum/teleport/Teleport.csproj +++ b/samples/azure-quantum/teleport/Teleport.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/azure-quantum/three-qubit-repetition-code/ThreeQubitRepetitionCode.csproj b/samples/azure-quantum/three-qubit-repetition-code/ThreeQubitRepetitionCode.csproj index 29c3fcd96563..456e523546d7 100644 --- a/samples/azure-quantum/three-qubit-repetition-code/ThreeQubitRepetitionCode.csproj +++ b/samples/azure-quantum/three-qubit-repetition-code/ThreeQubitRepetitionCode.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/characterization/phase-estimation/PhaseEstimationSample.csproj b/samples/characterization/phase-estimation/PhaseEstimationSample.csproj index 0b886aa6f520..9bed49669c3b 100644 --- a/samples/characterization/phase-estimation/PhaseEstimationSample.csproj +++ b/samples/characterization/phase-estimation/PhaseEstimationSample.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/characterization/process-tomography/environment.yml b/samples/characterization/process-tomography/environment.yml index 107ad91f1ce3..89edeb30107c 100644 --- a/samples/characterization/process-tomography/environment.yml +++ b/samples/characterization/process-tomography/environment.yml @@ -20,7 +20,7 @@ dependencies: - ipyparallel - py - notebook -- qsharp==0.28.277227 +- qsharp==0.28.291394 - jupyter_client==6.1.7 - pyzmq==19.0.2=py37h453f00a_2 - pip diff --git a/samples/characterization/randomized-benchmarking/RandomizedBenchmarking.csproj b/samples/characterization/randomized-benchmarking/RandomizedBenchmarking.csproj index a6821a17bed5..71bafdc824e1 100644 --- a/samples/characterization/randomized-benchmarking/RandomizedBenchmarking.csproj +++ b/samples/characterization/randomized-benchmarking/RandomizedBenchmarking.csproj @@ -1,4 +1,4 @@ - + Library diff --git a/samples/characterization/randomized-benchmarking/environment.yml b/samples/characterization/randomized-benchmarking/environment.yml index 4f3457e3ebf8..fcf81ac61ea2 100644 --- a/samples/characterization/randomized-benchmarking/environment.yml +++ b/samples/characterization/randomized-benchmarking/environment.yml @@ -21,7 +21,7 @@ dependencies: - ipyparallel - py - notebook -- qsharp==0.28.277227 +- qsharp==0.28.291394 - jupyter_client==6.1.7 - pyzmq==19.0.2=py37h453f00a_2 - pip diff --git a/samples/chemistry/AnalyzeHamiltonian/1-AnalyzeHamiltonian.csproj b/samples/chemistry/AnalyzeHamiltonian/1-AnalyzeHamiltonian.csproj index 9ca9bd176aa6..d5b7fdbce899 100644 --- a/samples/chemistry/AnalyzeHamiltonian/1-AnalyzeHamiltonian.csproj +++ b/samples/chemistry/AnalyzeHamiltonian/1-AnalyzeHamiltonian.csproj @@ -10,7 +10,7 @@ - + diff --git a/samples/chemistry/CreateHubbardHamiltonian/CreateHubbardHamiltonian.csproj b/samples/chemistry/CreateHubbardHamiltonian/CreateHubbardHamiltonian.csproj index c17f7450eddb..f7f1e93ae6fd 100644 --- a/samples/chemistry/CreateHubbardHamiltonian/CreateHubbardHamiltonian.csproj +++ b/samples/chemistry/CreateHubbardHamiltonian/CreateHubbardHamiltonian.csproj @@ -7,7 +7,7 @@ - + diff --git a/samples/chemistry/GetGateCount/3-GetGateCount.csproj b/samples/chemistry/GetGateCount/3-GetGateCount.csproj index cdabeda4996d..82f7b0d69e99 100644 --- a/samples/chemistry/GetGateCount/3-GetGateCount.csproj +++ b/samples/chemistry/GetGateCount/3-GetGateCount.csproj @@ -1,5 +1,5 @@  - + Exe @@ -18,7 +18,7 @@ - + diff --git a/samples/chemistry/LithiumHydrideGUI/LithiumHydrideGUI.csproj b/samples/chemistry/LithiumHydrideGUI/LithiumHydrideGUI.csproj index bf060df2c0d5..a259a18d7759 100644 --- a/samples/chemistry/LithiumHydrideGUI/LithiumHydrideGUI.csproj +++ b/samples/chemistry/LithiumHydrideGUI/LithiumHydrideGUI.csproj @@ -24,8 +24,8 @@ - - + + diff --git a/samples/chemistry/MolecularHydrogen/MolecularHydrogen.csproj b/samples/chemistry/MolecularHydrogen/MolecularHydrogen.csproj index 31e92dd05ab8..9dbbe7921e0b 100644 --- a/samples/chemistry/MolecularHydrogen/MolecularHydrogen.csproj +++ b/samples/chemistry/MolecularHydrogen/MolecularHydrogen.csproj @@ -1,4 +1,4 @@ - + Exe @@ -6,7 +6,7 @@ - + diff --git a/samples/chemistry/MolecularHydrogenGUI/MolecularHydrogenGUI.csproj b/samples/chemistry/MolecularHydrogenGUI/MolecularHydrogenGUI.csproj index 5b51840a5dfa..2683fb342965 100644 --- a/samples/chemistry/MolecularHydrogenGUI/MolecularHydrogenGUI.csproj +++ b/samples/chemistry/MolecularHydrogenGUI/MolecularHydrogenGUI.csproj @@ -25,8 +25,8 @@ - - + + diff --git a/samples/chemistry/RunSimulation/2-RunSimulation.csproj b/samples/chemistry/RunSimulation/2-RunSimulation.csproj index 14337e951b1d..e528162bcda5 100644 --- a/samples/chemistry/RunSimulation/2-RunSimulation.csproj +++ b/samples/chemistry/RunSimulation/2-RunSimulation.csproj @@ -1,5 +1,5 @@  - + Exe @@ -11,8 +11,8 @@ - - + + diff --git a/samples/chemistry/SimulateHubbardHamiltonian/SimulateHubbardHamiltonian.csproj b/samples/chemistry/SimulateHubbardHamiltonian/SimulateHubbardHamiltonian.csproj index 31e92dd05ab8..9dbbe7921e0b 100644 --- a/samples/chemistry/SimulateHubbardHamiltonian/SimulateHubbardHamiltonian.csproj +++ b/samples/chemistry/SimulateHubbardHamiltonian/SimulateHubbardHamiltonian.csproj @@ -1,4 +1,4 @@ - + Exe @@ -6,7 +6,7 @@ - + diff --git a/samples/diagnostics/unit-testing/UnitTesting.csproj b/samples/diagnostics/unit-testing/UnitTesting.csproj index 462ba0467af4..fda74c66e8d2 100644 --- a/samples/diagnostics/unit-testing/UnitTesting.csproj +++ b/samples/diagnostics/unit-testing/UnitTesting.csproj @@ -1,4 +1,4 @@ - + Exe @@ -6,7 +6,7 @@ - + diff --git a/samples/error-correction/bit-flip-code/BitFlipCode.csproj b/samples/error-correction/bit-flip-code/BitFlipCode.csproj index 14070cbcf4fe..b455720d4e1c 100644 --- a/samples/error-correction/bit-flip-code/BitFlipCode.csproj +++ b/samples/error-correction/bit-flip-code/BitFlipCode.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/error-correction/syndrome/Syndrome.csproj b/samples/error-correction/syndrome/Syndrome.csproj index 15d0e2711362..d1de6cdfdeb6 100644 --- a/samples/error-correction/syndrome/Syndrome.csproj +++ b/samples/error-correction/syndrome/Syndrome.csproj @@ -1,4 +1,4 @@ - + net6.0 diff --git a/samples/getting-started/measurement/Measurement.csproj b/samples/getting-started/measurement/Measurement.csproj index 14070cbcf4fe..b455720d4e1c 100644 --- a/samples/getting-started/measurement/Measurement.csproj +++ b/samples/getting-started/measurement/Measurement.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/getting-started/qrng/Qrng.csproj b/samples/getting-started/qrng/Qrng.csproj index 192aa30d9826..9b1a173b168a 100644 --- a/samples/getting-started/qrng/Qrng.csproj +++ b/samples/getting-started/qrng/Qrng.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/getting-started/simple-algorithms/SimpleAlgorithms.csproj b/samples/getting-started/simple-algorithms/SimpleAlgorithms.csproj index 14070cbcf4fe..b455720d4e1c 100644 --- a/samples/getting-started/simple-algorithms/SimpleAlgorithms.csproj +++ b/samples/getting-started/simple-algorithms/SimpleAlgorithms.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/getting-started/teleportation/TeleportationSample.csproj b/samples/getting-started/teleportation/TeleportationSample.csproj index 14070cbcf4fe..b455720d4e1c 100644 --- a/samples/getting-started/teleportation/TeleportationSample.csproj +++ b/samples/getting-started/teleportation/TeleportationSample.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/interoperability/dotnet/qsharp/qsharp.csproj b/samples/interoperability/dotnet/qsharp/qsharp.csproj index afd304274838..0694484c914b 100644 --- a/samples/interoperability/dotnet/qsharp/qsharp.csproj +++ b/samples/interoperability/dotnet/qsharp/qsharp.csproj @@ -1,4 +1,4 @@ - + Library diff --git a/samples/interoperability/python/environment.yml b/samples/interoperability/python/environment.yml index da77b787dcc0..1610cb704b95 100644 --- a/samples/interoperability/python/environment.yml +++ b/samples/interoperability/python/environment.yml @@ -17,4 +17,4 @@ dependencies: - qutip - matplotlib - notebook -- qsharp==0.28.277227 +- qsharp==0.28.291394 diff --git a/samples/interoperability/python/python.csproj b/samples/interoperability/python/python.csproj index 5954fd72a671..043904e2ded7 100644 --- a/samples/interoperability/python/python.csproj +++ b/samples/interoperability/python/python.csproj @@ -1,6 +1,6 @@ - + Library @@ -15,7 +15,7 @@ will automatically be downloaded from nuget.org and made available to your Q# workspace. --> - + diff --git a/samples/interoperability/qrng/Qrng.csproj b/samples/interoperability/qrng/Qrng.csproj index 192aa30d9826..9b1a173b168a 100644 --- a/samples/interoperability/qrng/Qrng.csproj +++ b/samples/interoperability/qrng/Qrng.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/machine-learning/half-moons/HalfMoons.csproj b/samples/machine-learning/half-moons/HalfMoons.csproj index 7287fbec7125..6784494cbfe1 100644 --- a/samples/machine-learning/half-moons/HalfMoons.csproj +++ b/samples/machine-learning/half-moons/HalfMoons.csproj @@ -1,4 +1,4 @@ - + Exe @@ -8,7 +8,7 @@ - + diff --git a/samples/machine-learning/half-moons/HalfMoons.ipynb b/samples/machine-learning/half-moons/HalfMoons.ipynb index 90d16e87a84d..891de745c5ac 100644 --- a/samples/machine-learning/half-moons/HalfMoons.ipynb +++ b/samples/machine-learning/half-moons/HalfMoons.ipynb @@ -34,7 +34,7 @@ "plt.style.use('ggplot')\n", "\n", "import qsharp\n", - "qsharp.packages.add(\"Microsoft.Quantum.MachineLearning::0.28.277227\")\n", + "qsharp.packages.add(\"Microsoft.Quantum.MachineLearning::0.28.291394\")\n", "qsharp.reload()\n", "\n", "from Microsoft.Quantum.Samples import (\n", diff --git a/samples/machine-learning/parallel-half-moons/ParallelHalfMoons.csproj b/samples/machine-learning/parallel-half-moons/ParallelHalfMoons.csproj index b8200aed32e2..fe6541b49117 100644 --- a/samples/machine-learning/parallel-half-moons/ParallelHalfMoons.csproj +++ b/samples/machine-learning/parallel-half-moons/ParallelHalfMoons.csproj @@ -1,4 +1,4 @@ - + Exe @@ -6,7 +6,7 @@ - + diff --git a/samples/machine-learning/wine/Wine.csproj b/samples/machine-learning/wine/Wine.csproj index daeca0dbd758..ed71d3f43ba3 100644 --- a/samples/machine-learning/wine/Wine.csproj +++ b/samples/machine-learning/wine/Wine.csproj @@ -1,4 +1,4 @@ - + Exe @@ -8,7 +8,7 @@ - + diff --git a/samples/numerics/custom-mod-add/CustomModAdd.csproj b/samples/numerics/custom-mod-add/CustomModAdd.csproj index 2aa0776b43ee..707bb04102c4 100644 --- a/samples/numerics/custom-mod-add/CustomModAdd.csproj +++ b/samples/numerics/custom-mod-add/CustomModAdd.csproj @@ -1,4 +1,4 @@ - + Exe @@ -7,6 +7,6 @@ - + diff --git a/samples/numerics/evaluating-functions/EvaluatingFunctions.csproj b/samples/numerics/evaluating-functions/EvaluatingFunctions.csproj index 2aa0776b43ee..707bb04102c4 100644 --- a/samples/numerics/evaluating-functions/EvaluatingFunctions.csproj +++ b/samples/numerics/evaluating-functions/EvaluatingFunctions.csproj @@ -1,4 +1,4 @@ - + Exe @@ -7,6 +7,6 @@ - + diff --git a/samples/numerics/resource-counting/ResourceCounting.csproj b/samples/numerics/resource-counting/ResourceCounting.csproj index 5ce03bdfb4aa..688812cffbfb 100644 --- a/samples/numerics/resource-counting/ResourceCounting.csproj +++ b/samples/numerics/resource-counting/ResourceCounting.csproj @@ -1,4 +1,4 @@ - + Exe @@ -6,7 +6,7 @@ - + diff --git a/samples/qir/oracle-generator/qsharp/project.csproj b/samples/qir/oracle-generator/qsharp/project.csproj index b51bfaf832e7..05951ea3e582 100644 --- a/samples/qir/oracle-generator/qsharp/project.csproj +++ b/samples/qir/oracle-generator/qsharp/project.csproj @@ -1,4 +1,4 @@ - + Exe net6.0 diff --git a/samples/runtime/autosubstitution/AutoSubstitution.csproj b/samples/runtime/autosubstitution/AutoSubstitution.csproj index e4d1c3aa0734..0567af8c866b 100644 --- a/samples/runtime/autosubstitution/AutoSubstitution.csproj +++ b/samples/runtime/autosubstitution/AutoSubstitution.csproj @@ -1,4 +1,4 @@ - + Exe net6.0 diff --git a/samples/runtime/oracle-emulation/OracleEmulation.csproj b/samples/runtime/oracle-emulation/OracleEmulation.csproj index e45bfe27f3b5..7f2b90c862cc 100644 --- a/samples/runtime/oracle-emulation/OracleEmulation.csproj +++ b/samples/runtime/oracle-emulation/OracleEmulation.csproj @@ -1,4 +1,4 @@ - + Exe @@ -7,6 +7,6 @@ - + diff --git a/samples/runtime/qpic-simulator/host/host.csproj b/samples/runtime/qpic-simulator/host/host.csproj index 6266b5b957da..9421de93c2d3 100644 --- a/samples/runtime/qpic-simulator/host/host.csproj +++ b/samples/runtime/qpic-simulator/host/host.csproj @@ -1,10 +1,10 @@ - + net6.0 - + diff --git a/samples/runtime/qpic-simulator/simulator/simulator.csproj b/samples/runtime/qpic-simulator/simulator/simulator.csproj index b41223e2a7d3..09b2aae13fce 100644 --- a/samples/runtime/qpic-simulator/simulator/simulator.csproj +++ b/samples/runtime/qpic-simulator/simulator/simulator.csproj @@ -1,4 +1,4 @@ - + net6.0 Library diff --git a/samples/runtime/reversible-simulator-advanced/host/host.csproj b/samples/runtime/reversible-simulator-advanced/host/host.csproj index 5215414a7d46..e4ed5ac4655c 100644 --- a/samples/runtime/reversible-simulator-advanced/host/host.csproj +++ b/samples/runtime/reversible-simulator-advanced/host/host.csproj @@ -1,4 +1,4 @@ - + net6.0 Exe diff --git a/samples/runtime/reversible-simulator-advanced/simulator/simulator.csproj b/samples/runtime/reversible-simulator-advanced/simulator/simulator.csproj index d94602139800..ca0bfcf4cd77 100644 --- a/samples/runtime/reversible-simulator-advanced/simulator/simulator.csproj +++ b/samples/runtime/reversible-simulator-advanced/simulator/simulator.csproj @@ -4,7 +4,7 @@ - - + + diff --git a/samples/runtime/reversible-simulator-simple/ReversibleSimulator.csproj b/samples/runtime/reversible-simulator-simple/ReversibleSimulator.csproj index 7988331306ba..a377e45dbef3 100644 --- a/samples/runtime/reversible-simulator-simple/ReversibleSimulator.csproj +++ b/samples/runtime/reversible-simulator-simple/ReversibleSimulator.csproj @@ -1,4 +1,4 @@ - + net6.0 Exe diff --git a/samples/runtime/simulator-with-overrides/SimulatorWithOverrides.csproj b/samples/runtime/simulator-with-overrides/SimulatorWithOverrides.csproj index 14070cbcf4fe..b455720d4e1c 100644 --- a/samples/runtime/simulator-with-overrides/SimulatorWithOverrides.csproj +++ b/samples/runtime/simulator-with-overrides/SimulatorWithOverrides.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/simulation/gaussian-initial-state/gaussian-initial-state.csproj b/samples/simulation/gaussian-initial-state/gaussian-initial-state.csproj index 5ad453bf9ba4..4c2dc747c3a2 100644 --- a/samples/simulation/gaussian-initial-state/gaussian-initial-state.csproj +++ b/samples/simulation/gaussian-initial-state/gaussian-initial-state.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/simulation/h2/command-line/H2SimulationSampleCmdLine.csproj b/samples/simulation/h2/command-line/H2SimulationSampleCmdLine.csproj index 14070cbcf4fe..b455720d4e1c 100644 --- a/samples/simulation/h2/command-line/H2SimulationSampleCmdLine.csproj +++ b/samples/simulation/h2/command-line/H2SimulationSampleCmdLine.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/simulation/h2/gui/H2SimulationGUI.csproj b/samples/simulation/h2/gui/H2SimulationGUI.csproj index 55ee6e95a5a6..4c3be5dbd98e 100644 --- a/samples/simulation/h2/gui/H2SimulationGUI.csproj +++ b/samples/simulation/h2/gui/H2SimulationGUI.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/simulation/hubbard/HubbardSimulationSample.csproj b/samples/simulation/hubbard/HubbardSimulationSample.csproj index 14070cbcf4fe..b455720d4e1c 100644 --- a/samples/simulation/hubbard/HubbardSimulationSample.csproj +++ b/samples/simulation/hubbard/HubbardSimulationSample.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/simulation/ising/IsingSamples.csproj b/samples/simulation/ising/IsingSamples.csproj index 192aa30d9826..9b1a173b168a 100644 --- a/samples/simulation/ising/IsingSamples.csproj +++ b/samples/simulation/ising/IsingSamples.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/samples/simulation/qaoa/QAOA.csproj b/samples/simulation/qaoa/QAOA.csproj index 57ec0e28332b..cdc41364a882 100644 --- a/samples/simulation/qaoa/QAOA.csproj +++ b/samples/simulation/qaoa/QAOA.csproj @@ -1,4 +1,4 @@ - + Exe net6.0 diff --git a/samples/tests/sample-tests/SampleTests.csproj b/samples/tests/sample-tests/SampleTests.csproj index 75648fc710c3..386571a5f91d 100644 --- a/samples/tests/sample-tests/SampleTests.csproj +++ b/samples/tests/sample-tests/SampleTests.csproj @@ -1,4 +1,4 @@ - + net6.0 x64 @@ -22,7 +22,7 @@ - +