Skip to content

Commit

Permalink
fix: use add_ins instead of add_gate
Browse files Browse the repository at this point in the history
  • Loading branch information
beizhansl committed Nov 22, 2023
1 parent 95184cd commit 61d5b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/quafu/algorithms/angle_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_build(self):
qc = QuantumCircuit(num_qubits)
feature = np.array([[6,-12.5,11.15,7],[8,9.5,-11,-5],[5,0.5,8,-7]])
for i in range(4):
qc.add_gate(qeg.HGate(pos=i))
qc.add_ins(qeg.HGate(pos=i))
for i in range(len(feature)):
qc.add_gates(AngleEmbedding(features=feature[i], num_qubits=num_qubits,rotation='Y'))
qc.draw_circuit(width=num_qubits)

0 comments on commit 61d5b22

Please sign in to comment.