Spanish
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.dagcircuit.DAGCircuit.compose

DAGCircuit.compose(other, qubits=None, clbits=None, front=False, inplace=True)[fuente]

Compose the other circuit onto the output of this circuit.

A subset of input wires of other are mapped to a subset of output wires of this circuit.

other can be narrower or of equal width to self.

Parámetros
  • other (DAGCircuit) – circuit to compose with self

  • qubits (list[Qubit|int]) – qubits of self to compose onto.

  • clbits (list[Clbit|int]) – clbits of self to compose onto.

  • front (bool) – If True, front composition will be performed (not implemented yet)

  • inplace (bool) – If True, modify the object. Otherwise return composed circuit.

Devuelve

the composed dag (returns None if inplace==True).

Tipo del valor devuelto

DAGCircuit

Muestra

DAGCircuitError – if other is wider or there are duplicate edge mappings.