Qiskit Practice
kibrahim757 66 questions

Qiskit v2.x mock exam

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

Question 07 / 66
Which of these circuits would you use to compute the weighted sum 2x₀ + 3x₁ where x₀ and x₁ are binary inputs encoded in qubits?
from qiskit.circuit.library import ______
weights = [2, 3]
circuit = ______(2, weights=weights)

What should fill in the blanks?