Skip to content

Commit

Permalink
Change list conversion using constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Tankya2 committed Aug 17, 2023
1 parent 1dba4c3 commit d81cce5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qibotn/mps_contraction_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def contract_expectation(
interleaved_inputs = []
extra_mode = 3 * self.num_qubits + 2
operator_modes = [None] * len(qubits) + [self.bra_modes[q][1] for q in qubits]
qubits = [q for q in qubits]
qubits = list(qubits)
for i, o in enumerate(mps_tensors):
interleaved_inputs.extend([o, self.bra_modes[i]])
k_modes = self.ket_modes[i]
Expand Down

0 comments on commit d81cce5

Please sign in to comment.