Suppose I have the following command (using Python and Qiskit):
a = reduce(lambda x,y: x.compose(y,c),circli, qcla)
(qcla
is an initializer)
Here, compose
is an internal qiskit function, x and y are elements of the list circli
(iterable). I'm wondering is it possible for me to add another iterable in this reduce
function? Here, c
itself in (y,c)
represents a coordinate, such as [2,3]
, and I'm hoping to have it updated as well. Can I create another list containing all the possible c
's and add it as another iterable? Thanks!