Which of these would execute a circuit on a set of qubits which are coupled in a custom way?

Which of these would execute a circuit on a set of qubits which are coupled in a custom way?

from qiskit import QuantumCircuit, execute, BasicAer

backend = BasicAer.get_backend(‘qasm_simulator’)

qc = QuantumCircuit(2)

# insert code here
A . execute(qc, backend, shots=1024, coupling_map=[[0,1], [1,2]])
B . execute(qc, backend, shots=1024, custom_topology=[[0,1],[2,3]]
C . execute (qc, backend, mode="custom")
D . execute(qc, backend, shots=1024, device="qasm_simulator", mode="custom")

Answer: A

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments