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

converters #1410

Merged
merged 13 commits into from
Dec 5, 2018
Merged

converters #1410

merged 13 commits into from
Dec 5, 2018

Conversation

jaygambetta
Copy link
Member

@jaygambetta jaygambetta commented Dec 4, 2018

Moving the converters to a folder to remove them from the objects.

@jaygambetta jaygambetta changed the title WIP converters converters Dec 5, 2018
@@ -81,7 +77,9 @@ def __str__(self):
return str(self.draw(output='text'))

def __eq__(self, other):
return DAGCircuit.fromQuantumCircuit(self) == DAGCircuit.fromQuantumCircuit(other)
# TODO: removed the DAG from this function
Copy link
Member

Choose a reason for hiding this comment

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

I don't get this TODO.

Copy link
Member Author

@jaygambetta jaygambetta Dec 5, 2018

Choose a reason for hiding this comment

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

to remind us that if we combine them to remove this conversion. If we decide to not combine them they can do this step without converting to dag and then a circuit that is the same has data = data not just that the dag are equivalent

qiskit/_quantumcircuit.py Outdated Show resolved Hide resolved
test/python/circuit/test_circuit_operations.py Outdated Show resolved Hide resolved
"""
# pylint: disable=unused-argument
# TODO: if arguments are really unused, consider changing the signature
# TODO: removed the DAG from this function
Copy link
Member

@ajavadia ajavadia Dec 5, 2018

Choose a reason for hiding this comment

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

I don't get this TODO.

Copy link
Member Author

Choose a reason for hiding this comment

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

When i do issue #1145 that we dont go to a dag to make the qobj

lia-approves pushed a commit to edasgupta/qiskit-terra that referenced this pull request Jul 30, 2019
* Adding qobj converters

* Adding circuit_to_dag

* Tests

* Cleaning up

* Adding changes

* Adding more

* Lint

* Update test_circuit_operations.py

* Cleaning up
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.

2 participants