a647fed51bb6c66a14d9302c738706ccc1d02b12,qiskit/aqua/operators/list_ops/list_op.py,ListOp,_expand_dim,#ListOp#Any#,226
Before Change
return TensoredOp([self] * other)
def _expand_dim(self, num_qubits: int) -> "ListOp":
return ListOp([op._expand_dim(num_qubits + self.num_qubits - op.num_qubits)
for op in self.oplist], combo_fn=self.combo_fn, coeff=self.coeff)
def permute(self, permutation: List[int]) -> "ListOp":
Permute the qubits of the operator.
After Change
def _expand_dim(self, num_qubits: int) -> "ListOp":
oplist = [op._expand_dim(num_qubits + self.num_qubits - op.num_qubits)
for op in self.oplist]
return ListOp(oplist, **self._state())
def permute(self, permutation: List[int]) -> "ListOp":
Permute the qubits of the operator.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: Qiskit/qiskit-aqua
Commit Name: a647fed51bb6c66a14d9302c738706ccc1d02b12
Time: 2020-11-20
Author: gaconju@gmail.com
File Name: qiskit/aqua/operators/list_ops/list_op.py
Class Name: ListOp
Method Name: _expand_dim
Project Name: brian-team/brian2
Commit Name: fb79a66bd819d259c92141f80e07ba103a923081
Time: 2014-01-17
Author: marcel.stimberg@ens.fr
File Name: brian2/groups/group.py
Class Name: Group
Method Name: __getattr__
Project Name: Qiskit/qiskit-aqua
Commit Name: a647fed51bb6c66a14d9302c738706ccc1d02b12
Time: 2020-11-20
Author: gaconju@gmail.com
File Name: qiskit/aqua/operators/list_ops/list_op.py
Class Name: ListOp
Method Name: reduce