From a0a31c60ae7c670c09373fbd24bb076c27252a46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar=20Zaragoza=20Cort=C3=A9s?= Date: Tue, 13 Aug 2024 21:47:27 -0700 Subject: [PATCH] Simplify targets logic and prepare exclusion list for next release (#1815) This change does two things: - Simplify the way we determine whether a target supports QIR. - Add a target to the exclusion list in preparation for the next release. --- vscode/src/azure/providerProperties.ts | 38 ++++++-------------------- 1 file changed, 8 insertions(+), 30 deletions(-) diff --git a/vscode/src/azure/providerProperties.ts b/vscode/src/azure/providerProperties.ts index eafa1d3fc3..314b7cf6b4 100644 --- a/vscode/src/azure/providerProperties.ts +++ b/vscode/src/azure/providerProperties.ts @@ -1,40 +1,18 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -// Note: Most of these should be dynamic at some point, with configuration coming -// from the service, and able to be overridden by settings. - -const targetsThatSupportQir = [ - "quantinuum.sim.h1-1sc", - "quantinuum.sim.h1-1e", - "quantinuum.qpu.h1-1", - "quantinuum.sim.h1-2sc", - "quantinuum.sim.h1-2e", - "quantinuum.qpu.h1-2", - "quantinuum.sim.h2-1sc", - "quantinuum.sim.h2-1e", - "quantinuum.qpu.h2-1", - "rigetti.sim.qvm", - "rigetti.qpu.ankaa-2", - "rigetti.qpu.ankaa-9q-1", - "rigetti.qpu.aspen-m-3", - "ionq.qpu-preview", - "ionq.qpu.aria-1-preview", - "ionq.qpu.aria-2-preview", - "ionq.qpu.forte-1", - "ionq.simulator-preview", - "ionq.qpu", - "ionq.qpu.aria-1", - "ionq.qpu.aria-2", - "ionq.simulator", -]; - -const excludeTargets: string[] = ["rigetti.qpu.aspen-m-2"]; +const excludeTargets: string[] = ["ionq.qpu", "rigetti.qpu.aspen-m-2"]; const excludeProviders: string[] = []; export function targetSupportQir(target: string) { - return targetsThatSupportQir.includes(target); + // Note: Most of these should be dynamic at some point, with configuration coming + // from the service, and able to be overridden by settings. + return ( + target.startsWith("ionq") || + target.startsWith("quantinuum") || + target.startsWith("rigetti") + ); } export function shouldExcludeTarget(target: string) {