-
Notifications
You must be signed in to change notification settings - Fork 378
Closed
Labels
Hardware runtime 💻Running jobs on IBM quantum devicesRunning jobs on IBM quantum devicesstatus: need informationFurther information is requestedFurther information is requestedtype: discussion 🗣️General discussions and explanationsGeneral discussions and explanations
Milestone
Description
What should we add?
How to train/ test a VQC model using qiskit runtime sessions?
I tried encapsulating under session as below.
But it seems to be running on simulator even though a real backend is selected.
service = QiskitRuntimeService(channel="ibm_quantum", token=qAccesKey)
backend = least_busy(service.backends(simulator=False, operational=True, min_num_qubits=args.dim))
with Session(service = service, backend = backend):
vqc = VQC(feature_map=feature_map,
ansatz=ansatz,
optimizer=NFT(maxiter=args.blk),
callback=callback_graph,
)
vqc.fit(train_data, train_labels)
Metadata
Metadata
Assignees
Labels
Hardware runtime 💻Running jobs on IBM quantum devicesRunning jobs on IBM quantum devicesstatus: need informationFurther information is requestedFurther information is requestedtype: discussion 🗣️General discussions and explanationsGeneral discussions and explanations