Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Github actions tests #6

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

hornc
Copy link
Contributor

@hornc hornc commented Mar 12, 2021

I've been poking at various things here, trying to get a feel for how it all hangs together.

See the test actions as they have run on my fork here: https://github.com/hornc/QEDA/actions

I still have a way to go to understand how the multi-qubit gates are supposed to be laid out, but the unitary gates make sense, and I have created my own simple QASM files, which display nicely as pcbs in KiCad, which is how I noticed the Hadamard gates were Y Gates.

This PR adds Github actions on all pushes. If I keep going, I'd switch to pytest. I didn't want to change too much at first. Let's see how the existing tests run before I go changing everything.

self.targets.eval()
self._set_target(self.targets, indicator)
else:
for target in self.targets:
if type(target) != type(int):
if not isinstance(target, int):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not 100% sure about this one. The original type(int) is <class 'type'> , I'm assuming this is a mistake and the condition is supposed to be if target is not a Python int (as opposed to a qast_primitives.Int / qast.Int)

@hornc hornc changed the title Tests Enable Github action tests Mar 12, 2021
@hornc hornc changed the title Enable Github action tests Enable Github actions tests Mar 12, 2021
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.

1 participant