# 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

### How well defined is $log(P)$ for $P$ projection?

1  Asked on August 20, 2021 by r-w

### Where to publish quantum algorithm related paper

2  Asked on August 20, 2021 by zzy1130

### Can a Kraus representation act as the identity on any operator?

4  Asked on August 20, 2021

### Am I doing anything wrong when trying to calculate the expectation value in Qiskit on the real hardware?

1  Asked on August 20, 2021 by stinglikeabeer

### Representing a von Neumann measurement as $[mathcal{I} otimes P_i] U(rho_s otimes rho_a)U^{-1} [mathcal{I} otimes P_i]$, how do we choose $U$?

0  Asked on August 20, 2021

### Relation between Wigner quasi-probabability distribution and statistical second-moment

1  Asked on August 20, 2021 by kianoosh-kargar

### What does the adjoint of a channel represent physically?

3  Asked on August 20, 2021

### Is it possible to detect the phase $pi$ or 0 for the single qubit circuit X H P?

1  Asked on August 20, 2021 by psanfi

### Equivalence checking of quantum circuits up to error

0  Asked on August 20, 2021 by marsl

### Defining a Grassmann Algebra in Python

0  Asked on August 20, 2021 by callum

### What is the status of confirming the existence of anyons?

1  Asked on August 20, 2021 by user1271772

### Motivation for the definition of k-distillability

1  Asked on August 20, 2021

### Geometric interpretation of 1-distillability

0  Asked on August 20, 2021 by sanchayan-dutta

### What is the general matrix for the Swap gate?

1  Asked on August 20, 2021 by victory-omole

### What is the pseudo threshold of a QECC using stabilizer formalism

2  Asked on August 20, 2021 by el-mo

### Why attenuator and not filters for QC driving line

2  Asked on August 20, 2021

### How do you turn the CX gate upside down on ibm-q-experience?

2  Asked on August 20, 2021

### Is communication possible with entanglement?

3  Asked on August 20, 2021

### Is the quantum min-relative entropy $D_{min}(rho|sigma)=-log(F(rho, sigma)^2)$ or $D_{min}(rho|sigma)=-log(tr(Pi_rhosigma))$?

1  Asked on August 20, 2021