Skip to content

Commit

Permalink
remove token check from save_auth (#133)
Browse files Browse the repository at this point in the history
* remove token check from save_auth

* remove import
  • Loading branch information
cqc-melf authored Jun 23, 2023
1 parent 16c781c commit c4db418
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pytket/extensions/qiskit/backends/ibm.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import os
import itertools
import logging
from ast import literal_eval
Expand Down Expand Up @@ -125,8 +124,6 @@ def _save_ibmq_auth(qiskit_config: Optional[QiskitConfig]) -> None:
token = None
if qiskit_config is not None:
token = qiskit_config.ibmq_api_token
if token is None and os.getenv("PYTKET_REMOTE_QISKIT_TOKEN") is not None:
token = os.getenv("PYTKET_REMOTE_QISKIT_TOKEN")
try:
if token is not None:
IBMProvider.save_account(token, overwrite=True)
Expand Down

0 comments on commit c4db418

Please # to comment.