---
title: Command (v1.4)
description: API reference for qiskit.providers.models.Command in qiskit v1.4
source: https://eu-de.quantum.cloud.ibm.com/docs/en/api/qiskit/1.4/qiskit.providers.models.Command
---

# Command

*class* `qiskit.providers.models.Command(name, qubits=None, sequence=None, **kwargs)`

[GitHub](https://github.com/Qiskit/qiskit/tree/stable/1.4/qiskit/providers/models/pulsedefaults.py#L96-L162)

Bases: [`object`](https://docs.python.org/3/library/functions.html#object)

Class representing a Command.

### name

Pulse command name.

Initialize a Command object

**Parameters**

- **name** ([*str*](https://docs.python.org/3/library/stdtypes.html#str)) – The name of the command
- **qubits** – The qubits for the command
- **sequence** ([*PulseQobjInstruction*](/docs/api/qiskit/1.4/qiskit.qobj.PulseQobjInstruction "qiskit.qobj.PulseQobjInstruction")) – The sequence for the Command
- **kwargs** – Optional additional fields

## Methods

### from\_dict

*classmethod* `from_dict(data)`

[GitHub](https://github.com/Qiskit/qiskit/tree/stable/1.4/qiskit/providers/models/pulsedefaults.py#L142-L162)

Create a new Command object from a dictionary.

**Parameters**

**data** ([*dict*](https://docs.python.org/3/library/stdtypes.html#dict)) – A dictionary representing the `Command` to create. It will be in the same format as output by [`to_dict()`](#qiskit.providers.models.Command.to_dict "qiskit.providers.models.Command.to_dict").

**Returns**

The `Command` from the input dictionary.

**Return type**

[Command](#qiskit.providers.models.Command "qiskit.providers.models.Command")

### to\_dict

`to_dict()`

[GitHub](https://github.com/Qiskit/qiskit/tree/stable/1.4/qiskit/providers/models/pulsedefaults.py#L128-L140)

Return a dictionary format representation of the Command.

**Returns**

The dictionary form of the Command.

**Return type**

[dict](https://docs.python.org/3/library/stdtypes.html#dict)
