QuantumCircuit.add_calibration

QuantumCircuit.add_calibration(gate, qubits, schedule, params=None)[source]

Register a low-level, custom pulse definition for the given gate.

Parameters
  • gate (Union[Gate, str]) – Gate information.

  • qubits (Union[int, Tuple[int]]) – List of qubits to be measured.

  • schedule (Schedule) – Schedule information.

  • params (Optional[List[Union[float, Parameter]]]) – A list of parameters.

Raises

Exception – if the gate is of type string and params is None.