The edges between the vertices of different colors will be cut.
Solve using IonQ and Rigetti
To solve problems on a quantum computer, you need to register for an account on blueqat and get credit for the actual machine. Please obtain an API key from the setting screen and run it.
To solve a problem with a quantum computer, you need to wait for the computer to run. In some cases, the waiting time can be several hours.
Copy
from bqcloud import load_api
from blueqat import Circuit
from bqcloud import Device
api = load_api()
Copy
# Circuit, Device, Number of shots, Group name(Optional) for IonQ
task_ionq = api.execute(result.circuit, Device.IonQDevice, 10)
# Circuit, Device, Number of shots, Group name(Optional) for Rigetti
task_rigetti = api.execute(result.circuit, Device.Aspen11, 10)