Skip to content
This repository has been archived by the owner on Sep 13, 2019. It is now read-only.

add gate to gates map in constructor #74

Merged
merged 1 commit into from
May 23, 2019

Conversation

danbev
Copy link
Contributor

@danbev danbev commented May 23, 2019

Summary

This commit updates the Gate constructor to add the gate created to the
gates map if it does not exist.

Details and comments

The motivation for this was that when adding a custom gate it would not
be added to the gates map and hence an error would be thrown when trying
to execute the circuit.

This commit updates the Gate constructor to add the gate created to the
gates map if it does not exist.

The motivation for this was that when adding a custom gate it would not
be added to the gates map and hence an error would be thrown when trying
to execute the circuit.
@danbev danbev requested a review from jesusprubio May 23, 2019 11:44
@jesusprubio jesusprubio merged commit 349fc36 into qiskit-community:master May 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants