Skip to content

Commit

Permalink
add ffsim backend to providers
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsung committed Jan 2, 2024
1 parent 1e4119a commit d17f8cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions qiskit_cold_atom/fermions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,5 @@
FRYGate,
FRZGate,
)

from qiskit_cold_atom.fermions.ffsim_backend import FfsimBackend
5 changes: 2 additions & 3 deletions qiskit_cold_atom/providers/cold_atom_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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"]
Expand Down Expand Up @@ -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 != {}:
Expand All @@ -206,7 +206,6 @@ def save_account(
raise

if not credentials_present or overwrite:

credentials = {
"cold-atom-credentials": {
"urls": " ".join(url),
Expand Down

0 comments on commit d17f8cc

Please sign in to comment.