Circuit Sessions with Ali Javadi

preview_player
Показать описание
Speaker: Ali Javadi
Topic: Qiskit Circuit Library

--

Join us, as we explore the value and use of quantum circuits in our new livestream public lecture series, Circuit Sessions, every Wednesday at 12:00 pm EDT. This series will feature lectures by IBMers, academics, and industry researchers. Together we will go through the fundamentals and practical uses of quantum circuits. We will explore how circuits are being used to run algorithms to learn how to progress toward future quantum advantage.
Рекомендации по теме
Комментарии
Автор

I tried to follow the jupyter notebook here on my desktop, but encountered an error in the one_bit_adder like the following.


QiskitError Traceback (most recent call last)
in
4 state_c = qi.Statevector.from_int(0, 2) # clean ancilla
5 state_in =
----> 6 state_out =
7 state_out = qi.partial_trace(state_out, [0])
8

in evolve(self, other, qargs)
223 # Evolution by a circuit or instruction
224 if isinstance(other, (QuantumCircuit, Instruction)):
--> 225 return self._evolve_instruction(other, qargs=qargs)
226 # Evolution by an Operator
227 if not isinstance(other, Operator):

in _evolve_instruction(self, obj, qargs)
625 obj = obj.to_instruction()
626 vec = Statevector(self.data, dims=self.dims())
--> 627 vec._append_instruction(obj, qargs=qargs)
628 return vec

in _append_instruction(self, obj, qargs)
618 else:
619 new_qargs = [qargs[tup.index] for tup in qregs]
--> 620 self._append_instruction(instr, qargs=new_qargs)
621
622 def _evolve_instruction(self, obj, qargs=None):

in _append_instruction(self, obj, qargs)
607 # cannot compose this gate and raise an error.
608 if obj.definition is None:
--> 609 raise QiskitError('Cannot apply Instruction: {}'.format(obj.name))
610 for instr, qregs, cregs in obj.definition:
611 if cregs:

QiskitError: 'Cannot apply Instruction: reset'

Here are my qiskit versions. Any hints, please?
{'qiskit-terra': '0.14.2', 'qiskit-aer': '0.5.2', 'qiskit-ignis': '0.3.3', 'qiskit-ibmq-provider': '0.7.2', 'qiskit-aqua': '0.7.3', 'qiskit': '0.19.6'}

pilsungk
Автор

سلام من سجادي هستم اقاي جوادي من اوليل بار تو يوتيوب ديدمتون

motaharehsajadi