Quantum Computing, Quantum Computer, Simulator, From Scratch.
like above. (define c1 (make-circuit (list (list (I 2) X) (list H H)))) The equivalent Qiskit code: circuit = QuantumCircuit(2) circuit.x(1) circuit.barrier() circuit.h(0) circuit.h(1) circuit.draw('mpl') And this is how we apply the circuit to a set of qubits in base condition and finally measure