Bengali
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.library.NLocal.add_layer

NLocal.add_layer(other, entanglement=None, front=False)[source]

Append another layer to the NLocal.

প্যারামিটার
  • other (Union['NLocal', qiskit.circuit.Instruction, QuantumCircuit]) -- The layer to compose, can be another NLocal, an Instruction or Gate, or a QuantumCircuit.

  • entanglement (list[int] | str | list[list[int]] | None) -- The entanglement or qubit indices.

  • front (bool) -- If True, other is appended to the front, else to the back.

রিটার্নস

self, such that chained composes are possible.

রেইজেস

TypeError -- If other is not compatible, i.e. is no Instruction and does not have a to_instruction method.

রিটার্ন টাইপ

NLocal