Question: Importing the qiskit module from qiskit import * # Defining input, output and scratch qubits x = # number of input qubits y1 = #
The task here is two provide three QASM circuits computing the mappings |x,0,0) = ei0;(x)|X, Y;(x),() expressed using single-qubit and CNOT gates, where (y1, y2, y3) = Popcount(x) is the 4-input 3- output Popcount function and j e {1,2,3}. Each of the three will be scored separately. a) Circuit for j = 1 |x,0,0) = 2101(x)|x, y (x), 0) The task here is two provide three QASM circuits computing the mappings |x,0,0) = ei0;(x)|X, Y;(x),() expressed using single-qubit and CNOT gates, where (y1, y2, y3) = Popcount(x) is the 4-input 3- output Popcount function and j e {1,2,3}. Each of the three will be scored separately. a) Circuit for j = 1 |x,0,0) = 2101(x)|x, y (x), 0)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
