# How to change the names of the registers displayed with circuit_drawer (output='mpl')

Quantum Computing Asked by tribluralux on December 17, 2020

I am trying to change the appearance of the circuit_drawer in output=’mpl’ mode. The registers of the Quantum Circuit are named like ($$q0_0$$, $$q0_1$$, $$q1_0$$, $$q2_0$$, $$q2_1$$,..) but I’d like to name them myself. I can’t find a style function or option which is able to do that… any ideas?

To be clear what I would like to change:

When initializing the registers for the quantum circuit you need to set the parameter 'name'. For example:

f_in = QuantumRegister(n, name='f_in')
qc = QuantumCircuit(f_in, ...)
qc.draw(ouput='mpl')


Gives the output:

Answered by tribluralux on December 17, 2020

## Related Questions

### Is there an error on Qiskit.org textbook with the superdense coding section?

1  Asked on March 7, 2021 by e-h

### Is there an efficient circuit implementing the unitary $U|xrangle|0rangle=|xrangleBig(sqrt{1 – x/2^n},|0rangle+sqrt{x/2^n}|1rangleBig)?$

0  Asked on March 7, 2021

### ProjectQ – Error messages

1  Asked on March 7, 2021 by marija-scekic

### Can quantum state tomography break bb84?

2  Asked on March 7, 2021

### Does applying the transformation $sumalpha_{jk}|j,f(k)ranglemapstosumomega_N^{-jk}alpha_{jk}|j,f(k)rangle$ require computing $f^{-1}$?

1  Asked on March 6, 2021

### What is the probability of finding the second qubit as $0$ in the state $|psirangle=frac1{sqrt2}|00rangle+frac12|10rangle-frac12|11rangle$?

1  Asked on March 5, 2021 by lizzo

### What is the computational complexity of quantum annealing?

2  Asked on March 4, 2021 by dr-prasanna-date

### What are the thermodynamic limits of Shor’s algorithm

1  Asked on March 3, 2021

### A CNOT between two Hadamard gates: why does the CNOT changed the output of the second Hadamard gate?

1  Asked on March 3, 2021 by devymex

### How many shots should one take to get a reliable estimate in a quantum program?

2  Asked on March 3, 2021

### Simple Hadamard Circuit gives incorrect results?

3  Asked on March 3, 2021

### What is the intuition behind Bures and angle metrics?

1  Asked on March 2, 2021

### Is the column vector of a uniformly sampled random unitary matrix a uniformly sampled random state vector?

2  Asked on March 1, 2021 by quantum-guy-123

### How to not optimize the quantum gates in a qiskit circuit when running it in the real device?

1  Asked on March 1, 2021

### Can’t access IBMQ (NameError: name ‘IBMQ’ is not defined)

1  Asked on March 1, 2021 by sangeetha-paulraj

### Why does full state reconstruction require at least $N+1$ MUBs?

1  Asked on February 28, 2021 by gls

### Problems with Q# installing

2  Asked on February 28, 2021 by brockenduck

### Obtaining hermitian matrix using Knill and Laflamme condition?

1  Asked on February 28, 2021 by m-al-jumaily

### Can quantum computers be used to solve P = NP

1  Asked on February 27, 2021 by peter-morgan