Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Added the MicrosoftSimulator const string back in.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottCarda-MS committed Mar 21, 2022
1 parent 22b5d59 commit d37146d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/AzureClient/AzureClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ namespace Microsoft.Quantum.IQSharp.AzureClient
/// <inheritdoc/>
public class AzureClient : IAzureClient
{
private const string MicrosoftSimulator = "microsoft.simulator";

/// <summary>
/// Returns whether a target ID is meant for quantum execution since not all targets
/// exposed by providers are meant for that. More specifically, the Microsoft provider exposes
Expand All @@ -36,7 +38,7 @@ public class AzureClient : IAzureClient
/// </summary>
private static bool IsQuantumExecutionTarget(string targetId) =>
AzureExecutionTarget.GetProvider(targetId) != AzureProvider.Microsoft
|| targetId.StartsWith("microsoft.simulator");
|| targetId.StartsWith(MicrosoftSimulator);

/// <inheritdoc />
public Microsoft.Azure.Quantum.IWorkspace? ActiveWorkspace { get; private set; }
Expand Down

0 comments on commit d37146d

Please sign in to comment.