import matplotlib.pyplot
import networkx as nx
from qiskit_ibm_runtime.fake_provider import FakeVigoV2
from qiskit import qpy
from qiskit_aer import Aer
from qiskit_optimization.applications import Maxcut
print("Your installation works 🎉!")

from qiskit_ibm_runtime import QiskitRuntimeService

service = QiskitRuntimeService()
print("Your available backends are: ", service.backends())

from qiskit_ibm_runtime import QiskitRuntimeService

# Save an IBM Quantum account and set it as your default account.
QiskitRuntimeService.save_account(channel="ibm_quantum", token="<MY_IBM_QUANTUM_TOKEN>", overwrite=True, set_as_default=True)

# Load saved credentials
service = QiskitRuntimeService()