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

Replace circuit library pending deprecated classes #13540

Merged
merged 6 commits into from
Dec 17, 2024

Conversation

ShellyGarion
Copy link
Member

@ShellyGarion ShellyGarion commented Dec 9, 2024

Summary

Replace circuit library pending deprecated classes following #13046.

  • Diagonal --> DiagonalGate
  • EfficientSU2 --> efficient_su2
  • GraphState --> GraphStateGate
  • QuantumVolume --> quantum_volume
  • IQP --> iqp
  • QFT --> QFTGate

Details and comments

@ShellyGarion ShellyGarion added the Changelog: None Do not include in changelog label Dec 9, 2024
@ShellyGarion ShellyGarion added this to the 2.0.0 milestone Dec 9, 2024
@ShellyGarion ShellyGarion requested a review from Cryoris December 9, 2024 09:43
@ShellyGarion ShellyGarion requested a review from a team as a code owner December 9, 2024 09:43
@qiskit-bot
Copy link
Collaborator

One or more of the following people are relevant to this code:

  • @Cryoris
  • @Qiskit/terra-core
  • @ajavadia

@Cryoris Cryoris self-assigned this Dec 9, 2024
@coveralls
Copy link

coveralls commented Dec 9, 2024

Pull Request Test Coverage Report for Build 12256416471

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • 36 unchanged lines in 6 files lost coverage.
  • Overall coverage decreased (-0.01%) to 88.938%

Files with Coverage Reduction New Missed Lines %
qiskit/circuit/library/quantum_volume.py 1 93.18%
crates/accelerate/src/unitary_synthesis.rs 1 92.2%
crates/qasm2/src/expr.rs 1 94.02%
crates/qasm2/src/parse.rs 6 97.62%
crates/qasm2/src/lex.rs 9 92.23%
crates/circuit/src/circuit_data.rs 18 95.42%
Totals Coverage Status
Change from base Build 12182055039: -0.01%
Covered Lines: 79368
Relevant Lines: 89240

💛 - Coveralls

@ShellyGarion ShellyGarion changed the title Replace Diagonal by DiagonalGate [WIP] Replace circuit library pending deprecated classes Dec 9, 2024
@ShellyGarion
Copy link
Member Author

I think that test/python/circuit/library/test_overlap.py could be updated only after #13523 is merged

Copy link
Contributor

@Cryoris Cryoris left a comment

Choose a reason for hiding this comment

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

One minor suggestion, otherwise LGTM!

@@ -48,7 +48,7 @@ def setup(self, basis_gate):
self.qaoa_qasm = os.path.join(qasm_dir, "qaoa_barabasi_albert_N100_3reps.qasm")
self.qaoa_qc = QuantumCircuit.from_qasm_file(self.qaoa_qasm)
self.qv_qc = build_qv_model_circuit(50, 50, SEED)
self.circSU2 = EfficientSU2(100, reps=3, entanglement="circular")
self.circSU2 = efficient_su2(100, reps=3, entanglement="circular")
Copy link
Contributor

Choose a reason for hiding this comment

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

This will change the benchmarked behavior as the circuit now comes unwrapped, but I'd say this is fine since we've changed the workflow here. If we wanted to benchmark decomposition, we could add another test specifically for that in the future.

Copy link
Contributor

@Cryoris Cryoris left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for this!

@Cryoris Cryoris changed the title [WIP] Replace circuit library pending deprecated classes Replace circuit library pending deprecated classes Dec 17, 2024
@Cryoris Cryoris added this pull request to the merge queue Dec 17, 2024
Merged via the queue into Qiskit:main with commit cf5ef03 Dec 17, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: None Do not include in changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants