Qiskit Practice
kibrahim757 66 questions

Qiskit v2.x mock exam

Select one answer per question. Submit to see the explanation.

Question 62 / 66
What will be printed when the following code is executed??
from qiskit.qasm3 import loads

qasm_string = """

OPENQASM 3.0;
include "stdgates.inc";

qubit[3] q;
bit[3] c;

h q[0];
cx q[0], q[1];

c[0] = measure q0;
c[1] = measure q1;
"""

try:
    circuit = loads(qasm_string)
    print("Circuit loaded successfully")
except Exception as e:
    print(f"Error: {type(e).__name__}")