Which of the following statement will convert the below qasm file to a Quantum circuit qc?

Which of the following statement will convert the below qasm file to a Quantum circuit qc?

myfile.qasm

OPENQASM 2.0;

include "qelib1.inc";

qreg q[2];

h q[0];

h q[1];

s q[0];

s q[1];
A . qc = QuantumCircuit.from_file(‘myfile.qasm’)
B . qc = QuantumCircuit.from_qasm_file(‘myfile.qasm’)
C . qc = QuantumCircuit.read(‘myfile.qasm’)
D . qc = QuantumCircuit.read(‘myfile.qasm’)
E . qc = QuantumCircuit.qasm_read(‘myfile.qasm’)

Answer: B

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments