Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Ripper committed May 27, 2024
1 parent 8206e22 commit 14cb2e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/QiskitOpt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ function __init__()

# IBMQ Credentials
IBMQ_API_TOKEN = get(ENV, "IBMQ_API_TOKEN", nothing)
IBMQ_INSTANCE = get(ENV, "IBMQ_INSTANCE", "ibm-q/open/main")

if !isnothing(IBMQ_API_TOKEN)
qiskit_ibm_runtime.QiskitRuntimeService.save_account(channel="ibm_quantum", token=IBMQ_API_TOKEN)
qiskit_ibm_runtime.QiskitRuntimeService.save_account(channel="ibm_quantum", instance = IBMQ_INSTANCE, token=IBMQ_API_TOKEN)
end
end

Expand Down

0 comments on commit 14cb2e8

Please sign in to comment.