Qiskit Practice
EXAM C1000-3000 (Impossible) 68 questions

Qiskit v2.x mock exam

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

Question 61 / 68
You load the OpenQASM 2 program below. The custom gate accepts a parameter used by sqrt in its body, and the supplied argument is −1. The gate's definition has not been accessed. In Qiskit 2.6, when and how is the domain error reported?
OPENQASM 2.0;
gate broken(theta) a { U(sqrt(theta),0,0) a; }
qreg q[1];
broken(-1) q[0];