Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
eendebakpt committed Nov 19, 2023
1 parent 25eaa05 commit 0dedada
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from numpy.random import Generator, default_rng
from numpy.random.bit_generator import BitGenerator, SeedSequence

from qiskit.circuit import QuantumCircuit, Instruction, Barrier
from qiskit.circuit import CircuitInstruction, QuantumCircuit, Instruction, Barrier
from qiskit.exceptions import QiskitError
from qiskit.providers import BackendV2Converter
from qiskit.providers.backend import Backend, BackendV1, BackendV2
Expand Down Expand Up @@ -291,7 +291,7 @@ def _sequences_to_circuits(
circ = QuantumCircuit(self.num_qubits)
for elem in seq:
circ.append(self._to_instruction(elem, basis_gates), circ.qubits)
circ._append(Barrier(self.num_qubits), circ.qubits, circ.cregs)
circ._append(CircuitInstruction(Barrier(self.num_qubits), circ.qubits) )

# Compute inverse, compute only the difference from the previous shorter sequence
prev_elem = self.__compose_clifford_seq(prev_elem, seq[len(prev_seq) :])
Expand Down

0 comments on commit 0dedada

Please sign in to comment.