Portuguese
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.opflow.state_fns.CircuitStateFn.compose

CircuitStateFn.compose(other, permutation=None, front=False)[código fonte]

Composition (Linear algebra-style: A@B(x) = A(B(x))) is not well defined for states in the binary function model, but is well defined for measurements.

Parâmetros
  • other (OperatorBase) – The Operator to compose with self.

  • permutation (Optional[List[int]]) – List[int] which defines permutation on other operator.

  • front (bool) – If front==True, return other.compose(self).

Retorno

An Operator equivalent to the function composition of self and other.

Levanta

ValueError – If self is not a measurement, it cannot be composed from the right.

Tipo de retorno

OperatorBase