---
title: FunctionalPauliRotations (v2.1)
description: API reference for qiskit.circuit.library.FunctionalPauliRotations in qiskit v2.1
source: https://eu-de.quantum.cloud.ibm.com/docs/en/api/qiskit/2.1/qiskit.circuit.library.FunctionalPauliRotations
---

# FunctionalPauliRotations

*class* `qiskit.circuit.library.FunctionalPauliRotations(num_state_qubits=None, basis='Y', name='F')`

[GitHub](https://github.com/Qiskit/qiskit/tree/stable/2.1/qiskit/circuit/library/arithmetic/functional_pauli_rotations.py#L22-L114)

Bases: `BlueprintCircuit`, [`ABC`](https://docs.python.org/3/library/abc.html#abc.ABC)

Base class for functional Pauli rotations.

Create a new functional Pauli rotation circuit.

**Parameters**

- **num\_state\_qubits** ([*int*](https://docs.python.org/3/library/functions.html#int) *| None*) – The number of qubits representing the state $|x\rangle$.
- **basis** ([*str*](https://docs.python.org/3/library/stdtypes.html#str)) – The kind of Pauli rotation to use. Must be ‘X’, ‘Y’ or ‘Z’.
- **name** ([*str*](https://docs.python.org/3/library/stdtypes.html#str)) – The name of the circuit object.

## Attributes

### basis

The kind of Pauli rotation to be used.

Set the basis to ‘X’, ‘Y’ or ‘Z’ for controlled-X, -Y, or -Z rotations respectively.

**Returns**

The kind of Pauli rotation used in controlled rotation.

### num\_ancilla\_qubits

The minimum number of ancilla qubits in the circuit.

**Returns**

The minimal number of ancillas required.

### num\_state\_qubits

The number of state qubits representing the state $|x\rangle$.

**Returns**

The number of state qubits.

### name

Type: `str`

A human-readable name for the circuit.

**Example**

```python
from qiskit import QuantumCircuit

qc = QuantumCircuit(2, 2, name="my_circuit")
print(qc.name)
```

```text
my_circuit
```
