Skip to content

mcry gate with three control qubits cannot bind parameters #10167

@Pride-Huang

Description

@Pride-Huang

Environment

  • Qiskit Terra version: 0.23.3
  • Python version: 3.9
  • Operating system: Ubuntu 18.04.6

What is happening?

I construct a mcry gate with three qubits as control qubits, and one qubits as target qubits. When I bind parameters, it doesn't work.
1685085877778

How can we reproduce the issue?

from qiskit import QuantumCircuit, QuantumRegister, Aer
from qiskit.circuit import Parameter

qr = QuantumRegister(4)
qr_control = qr[:3]
qr_target = qr[3]

qc = QuantumCircuit(qr)
para = Parameter('input')
qc.mcry(para, qr_control, qr_target)
qc = qc.bind_parameters({para:1})
qc.draw('mpl')
1685085877778

What should happen?

the value 1 should be binded with 'input',but it doesn't.

Any suggestions?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions