query in when we apply multiple H gates in multiple qubits.
suppose, one circuit,
qreg_q = QuantumRegister(2, 'q')
creg_c = ClassicalRegister(2, 'c')
circuit = QuantumCircuit(qreg_q, creg_c)
circuit.h(qreg_q1)
circuit.h(qreg_q[0])
circuit.h(qreg_q1)
gives output for '00' and '01' states.
and
qreg_q = QuantumRegister(2, 'q')
creg_c = ClassicalRegister(2, 'c')
circuit = QuantumCircuit(qreg_q, creg_c)
circuit.h(qreg_q1) circuit.h(qreg_q[0]) circuit.h(qreg_q[0]) gives output for '00' and '10' states.
How to do this internal calculation? anyone help plz... how to derive.. for more H gates..