Skip to content

Commit

Permalink
Replace the InitialState components by circuits (qiskit-community/qis…
Browse files Browse the repository at this point in the history
…kit-aqua#1374)

* make chemistry initial states circuits

* put VSCF circuit in new file

* update several tests

* fix type change to tuple

* merge hf initial state and circuit

* merge initstate+circuit

* update EOH

* update hhl and qaia

* update chc and uvcc

* deprecate InitialState components

* update varformbased test

* fix running tests & mypy

* add reno

* fix iqpe test

* fix variable renaming from merge

* move to circuit.lib and use tuple

- move the initial state circuit to chemistry.circuit.library
- globally replace num_particles by a tuple instead of list of integers

* make _build_bitstr public functions
  • Loading branch information
Cryoris authored Oct 30, 2020
1 parent 5983137 commit c3dae78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit/aqua/operators/legacy/weighted_pauli_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1250,7 +1250,7 @@ def two_qubit_reduction(operator, num_particles):
"Return the empty operator back.")
return operator

if isinstance(num_particles, list):
if isinstance(num_particles, (tuple, list)):
num_alpha = num_particles[0]
num_beta = num_particles[1]
else:
Expand Down

0 comments on commit c3dae78

Please sign in to comment.