This repository has been archived by the owner on Jun 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: replaced backend adapters by backend classes
- Loading branch information
Sebastian Wagner
committed
Apr 15, 2024
1 parent
a676016
commit 634d483
Showing
15 changed files
with
298 additions
and
296 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from typing import Optional | ||
|
||
from qiskit.circuit import Gate | ||
|
||
from planqk.qiskit import PlanqkBackend | ||
|
||
|
||
class PlanqkAzureBackend(PlanqkBackend): | ||
|
||
def __init__(self, **kwargs): | ||
super().__init__(**kwargs) | ||
|
||
def to_gate(self, name: str) -> Optional[Gate]: | ||
name = name.lower() | ||
return Gate(name, 0, []) | ||
|
||
def get_single_qubit_gate_properties(self) -> dict: | ||
return {None: None} | ||
|
||
def get_multi_qubit_gate_properties(self) -> dict: | ||
return {None: None} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
from planqk.qiskit import PlanqkBackend | ||
from planqk.qiskit.options import OptionsV2 | ||
from planqk.qiskit.providers.azure.azure_backend import PlanqkAzureBackend | ||
|
||
|
||
class PlanqkAzureIonqBackend(PlanqkBackend): | ||
class PlanqkAzureIonqBackend(PlanqkAzureBackend): | ||
|
||
def __init__(self, **kwargs): | ||
super().__init__(**kwargs) | ||
|
||
@classmethod | ||
def _default_options(cls): | ||
return OptionsV2( | ||
gateset="qis", | ||
) | ||
gateset="qis", ) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.