From d17f8ccd279f296b893b568e2873febc730f0e2c Mon Sep 17 00:00:00 2001 From: "Kevin J. Sung" Date: Tue, 2 Jan 2024 11:47:48 -0500 Subject: [PATCH] add ffsim backend to providers --- qiskit_cold_atom/fermions/__init__.py | 2 ++ qiskit_cold_atom/providers/cold_atom_provider.py | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/qiskit_cold_atom/fermions/__init__.py b/qiskit_cold_atom/fermions/__init__.py index e6bbefc..4747437 100644 --- a/qiskit_cold_atom/fermions/__init__.py +++ b/qiskit_cold_atom/fermions/__init__.py @@ -104,3 +104,5 @@ FRYGate, FRZGate, ) + +from qiskit_cold_atom.fermions.ffsim_backend import FfsimBackend diff --git a/qiskit_cold_atom/providers/cold_atom_provider.py b/qiskit_cold_atom/providers/cold_atom_provider.py index 9cdb808..adeca72 100644 --- a/qiskit_cold_atom/providers/cold_atom_provider.py +++ b/qiskit_cold_atom/providers/cold_atom_provider.py @@ -28,6 +28,7 @@ from qiskit_cold_atom.exceptions import QiskitColdAtomError from qiskit_cold_atom.fermions import FermionSimulator +from qiskit_cold_atom.fermions import FfsimBackend from qiskit_cold_atom.spins import SpinSimulator from qiskit_cold_atom.providers.fermionic_tweezer_backend import ( @@ -85,10 +86,10 @@ def __init__(self, credentials: Optional[Dict[str, Union[str, List[str]]]] = Non SpinSimulator(provider=self), FermionicTweezerSimulator(provider=self), CollectiveSpinSimulator(provider=self), + FfsimBackend(provider=self), ] if credentials is not None: - try: urls = self.credentials["urls"] name = self.credentials["username"] @@ -190,7 +191,6 @@ def save_account( credentials_present = False if os.path.isfile(filename): - stored_credentials = ColdAtomProvider.stored_account(filename=filename) if stored_credentials != {}: @@ -206,7 +206,6 @@ def save_account( raise if not credentials_present or overwrite: - credentials = { "cold-atom-credentials": { "urls": " ".join(url),