FunctionalPauliRotations
class qiskit.circuit.library.FunctionalPauliRotations(num_state_qubits=None, basis='Y', name='F')
Bases: BlueprintCircuit
, ABC
Base class for functional Pauli rotations.
Create a new functional Pauli rotation circuit.
Parameters
- num_state_qubits (int | None) – The number of qubits representing the state .
- basis (str) – The kind of Pauli rotation to use. Must be ‘X’, ‘Y’ or ‘Z’.
- name (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 .
Returns
The number of state qubits.
name
Type: str
A human-readable name for the circuit.
Example
from qiskit import QuantumCircuit
qc = QuantumCircuit(2, 2, name="my_circuit")
print(qc.name)
my_circuit