Skip to content

Parameterized gate definitions built with incomplete ParameterTable #4863

@kdk

Description

@kdk

Information

  • Qiskit Terra version: master @ d8b5f0f
  • Python version: 3.5
  • Operating system: osx

What is the current behavior?

As reported by @georgios-ts in the Qiskit slack, definitions of parameterized gates are being generated with an incomplete ParameterTable . Introduced by #4745 .

Steps to reproduce the problem

x = Parameter('x') 
rx = RXGate(x)
print(rx.params)
print(rx.definition.parameters)
>> [Parameter(x)]
>> set()

What is the expected behavior?

Suggested solutions

        for instr, _, _ in rules:
            qc._update_parameter_table(instr)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingstable backport potentialThe bug might be minimal and/or import enough to be port to stable

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions