Skip to content

Invalid Parameters with CU gate in AerSimulator #12625

@ProThicc

Description

@ProThicc

Environment

  • Qiskit version: 1.1.0
  • Python version: 3.11.8
  • Operating system: Ubuntu 22.04.4 LTS

What is happening?

Custom Single Control Unitary gate shows Invalid Operation for AerSimulator from qiskit_aer

How can we reproduce the issue?

from qiskit import QuantumCircuit
from qiskit_aer import AerSimulator
from qiskit.circuit.add_control import add_control
from qiskit.circuit.library import UGate
qc = QuantumCircuit(3)
Sim = AerSimulator()
gate = UGate(-1.945632646294958, 1.5120405041931422, 2.4393357222229826)
qca_gate_reduced = add_control(gate, label='test', num_ctrl_qubits=1, ctrl_state=1)
qc.append(qca_gate_reduced, [1, 0])
qc.save_statevector()
result = Sim.run(qc).result().data(0)

What should happen?

Simulator should function giving the statevector after the Control Operation

Any suggestions?

Probably passing a default value of gamma for cu Gate should resolve the problem (I suspect that is the issue)

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