Skip to content

Commit

Permalink
Simplify targets logic and prepare exclusion list for next release (#…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
cesarzc authored Aug 14, 2024
1 parent f354f54 commit a0a31c6
Showing 1 changed file with 8 additions and 30 deletions.
38 changes: 8 additions & 30 deletions vscode/src/azure/providerProperties.ts
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down

0 comments on commit a0a31c6

Please sign in to comment.