You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the backend provider configuration defaults to coupling_map=[].
This requires the user to manually set the coupling map when an algorithm uses it. However, coupling maps are implicit in the backend topology. We should set programmatically set the coupling map upon initialization of the backend provider.
fromqiskit_rigettiimportRigettiQCSProvider, RigettiQCSBackendfromqiskit.transpilerimportCouplingMapimportpyquil# get the qvm coupling map and convert to qiskit, insert into backendqvm=pyquil.get_qc("7q-qvm")
g=qvm.quantum_processor.qubit_topology()
h=g.to_directed()
cm=h.edges()
rigprovider=RigettiQCSProvider()
backend=rigprovider.get_simulator(num_qubits=7, noisy=False)
conf=backend.configuration()
conf.coupling_map=CouplingMap(cm)
conf.simulator=Truebackend._configuration=conf
The text was updated successfully, but these errors were encountered:
Currently the backend provider configuration defaults to coupling_map=[].
This requires the user to manually set the coupling map when an algorithm uses it. However, coupling maps are implicit in the backend topology. We should set programmatically set the coupling map upon initialization of the backend provider.
The text was updated successfully, but these errors were encountered: