Skip to content

ResourceEstimation AnalysisPass#1889

Merged
ajavadia merged 60 commits into
Qiskit:masterfrom
1ucian0:depth_pass
Apr 5, 2019
Merged

ResourceEstimation AnalysisPass#1889
ajavadia merged 60 commits into
Qiskit:masterfrom
1ucian0:depth_pass

Conversation

@1ucian0
Copy link
Copy Markdown
Member

@1ucian0 1ucian0 commented Mar 4, 2019

A pass to count operations, useful to fix point analysis when optimizing.

@ajavadia
Copy link
Copy Markdown
Member

ajavadia commented Mar 9, 2019

Can you name the pass "ResourceEstimation" in line with the literature?

Also this needs to include all resources: size, depth, width, etc.. They are listed as methods on the QuantumCircuit object and you can pull them from there. I think each can go as a separate entry into the property_set. Just name them what the property is, ps['size'], ps['depth'], etc.

Can you also add a CHANGELOG.

@nonhermitian
Copy link
Copy Markdown
Contributor

Can this also count swaps, so we know how many a mapper adds?

@ajavadia ajavadia self-assigned this Mar 10, 2019
@1ucian0
Copy link
Copy Markdown
Member Author

1ucian0 commented Mar 11, 2019

in the process if adding depth I found a small bug. It should be ready now!

@ajavadia ajavadia changed the title CountOperations analysis pass ResourceEstimation AnalysisPass Mar 11, 2019
Comment thread qiskit/transpiler/passes/resource_estimation.py Outdated
Comment thread qiskit/transpiler/passes/resource_estimation.py Outdated
Comment thread test/python/transpiler/test_count_operations_pass.py Outdated
Comment thread test/python/transpiler/test_count_operations_pass.py Outdated
@ajavadia
Copy link
Copy Markdown
Member

can you add a changelog.

@1ucian0 1ucian0 requested review from ajavadia and removed request for ajavadia March 27, 2019 00:35
Comment thread qiskit/transpiler/passes/__init__.py Outdated
Comment thread qiskit/transpiler/passes/depth.py Outdated
Comment thread qiskit/transpiler/passes/depth.py Outdated
Comment thread qiskit/transpiler/passes/num_tensor_factor.py Outdated
Comment thread qiskit/transpiler/passes/num_tensor_factor.py Outdated
Comment thread qiskit/transpiler/passes/size.py Outdated
Comment thread qiskit/transpiler/passes/size.py Outdated
Comment thread qiskit/transpiler/passes/width.py Outdated
Comment thread qiskit/transpiler/passes/width.py Outdated
ajavadia and others added 11 commits April 4, 2019 13:13
Co-Authored-By: 1ucian0 <luciano@debian.org>
Co-Authored-By: 1ucian0 <luciano@debian.org>
Co-Authored-By: 1ucian0 <luciano@debian.org>
Co-Authored-By: 1ucian0 <luciano@debian.org>
Co-Authored-By: 1ucian0 <luciano@debian.org>
Co-Authored-By: 1ucian0 <luciano@debian.org>
Co-Authored-By: 1ucian0 <luciano@debian.org>
Co-Authored-By: 1ucian0 <luciano@debian.org>
Co-Authored-By: 1ucian0 <luciano@debian.org>
@ajavadia ajavadia merged commit 0ffed7f into Qiskit:master Apr 5, 2019
@1ucian0 1ucian0 deleted the depth_pass branch April 5, 2019 01:35
lia-approves pushed a commit to edasgupta/qiskit-terra that referenced this pull request Jul 30, 2019
* count operations pass

* empty dag test

* rename

* test

* test rename

* test name

* Update qiskit/transpiler/passes/resource_estimation.py

Co-Authored-By: 1ucian0 <luciano@debian.org>

* count_ops

* count_ops

* lint

* changelog

* depth pass

* size pass

* size pass

* count_ops pass

* size pass

* NumTensorFactor pass

* resource calculation metapass

* lint

* unused import

* changelog

* lint

* Update qiskit/transpiler/passes/__init__.py

Co-Authored-By: 1ucian0 <luciano@debian.org>

* Update qiskit/transpiler/passes/width.py

Co-Authored-By: 1ucian0 <luciano@debian.org>

* Update qiskit/transpiler/passes/num_tensor_factor.py

Co-Authored-By: 1ucian0 <luciano@debian.org>

* Update qiskit/transpiler/passes/depth.py

Co-Authored-By: 1ucian0 <luciano@debian.org>

* Update qiskit/transpiler/passes/depth.py

Co-Authored-By: 1ucian0 <luciano@debian.org>

* Update qiskit/transpiler/passes/size.py

Co-Authored-By: 1ucian0 <luciano@debian.org>

* Update qiskit/transpiler/passes/width.py

Co-Authored-By: 1ucian0 <luciano@debian.org>

* Update qiskit/transpiler/passes/size.py

Co-Authored-By: 1ucian0 <luciano@debian.org>

* Update qiskit/transpiler/passes/num_tensor_factor.py

Co-Authored-By: 1ucian0 <luciano@debian.org>

* renaming
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.

4 participants