Skip to content

Add u1 to params map#176

Merged
TheGupta2012 merged 2 commits intomainfrom
fix-u1-param-bug
Apr 24, 2025
Merged

Add u1 to params map#176
TheGupta2012 merged 2 commits intomainfrom
fix-u1-param-bug

Conversation

@TheGupta2012
Copy link
Copy Markdown
Member

Fixes #175

Gate support enhancements:

  • Added u1 and U1 gates in the PARAMS_OP_SET
  • Fixed an error message in the _visit_basic_gate_operation function in src/pyqasm/visitor.py to correctly reference the expected number of parameters (actual_num_params) instead of the expected number of qubits (op_qubit_count).

@TheGupta2012 TheGupta2012 merged commit 9ff8187 into main Apr 24, 2025
@TheGupta2012 TheGupta2012 deleted the fix-u1-param-bug branch May 26, 2025 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Incorrect validation error on parametrized gates

1 participant