Skip to content

Conversation

@MozammilQ
Copy link
Contributor

Summary

Bi-directional gates in the Target generated by GenericBackendV2 now have the same error-rate and duration for both the orders of qubit-pairs of the CouplingMap

Details and comments

from qiskit.providers.fake_provider import GenericBackendV2

backend = GenericBackendV2(3, seed=2024, basis_gates=["cz", "rz", "sx", "x"])
print(backend.target)

yeilds

Target: Generic Target with 3 qubits
Number of qubits: 3
Instructions:
	cz
		(0, 1):
			Duration: 2.19114e-07 sec.
			Error Rate: 0.00294791
		(1, 0):
			Duration: 2.19114e-07 sec.
			Error Rate: 0.00294791
		(0, 2):
			Duration: 5.439e-07 sec.
			Error Rate: 3.31019e-05
		(2, 0):
			Duration: 5.439e-07 sec.
			Error Rate: 3.31019e-05
		(1, 2):
			Duration: 7.35486e-07 sec.
			Error Rate: 0.00298814
		(2, 1):
			Duration: 7.35486e-07 sec.
			Error Rate: 0.00298814
	rz
		(0,):
			Duration: 0 sec.
			Error Rate: 0
		(1,):
			Duration: 0 sec.
			Error Rate: 0
		(2,):
			Duration: 0 sec.
			Error Rate: 0
	sx
		(0,):
			Duration: 4.329e-08 sec.
			Error Rate: 9.27804e-05
		(1,):
			Duration: 5.6166e-08 sec.
			Error Rate: 9.21316e-05
		(2,):
			Duration: 3.8184e-08 sec.
			Error Rate: 9.80718e-05
	x
		(0,):
			Duration: 3.7962e-08 sec.
			Error Rate: 9.26806e-05
		(1,):
			Duration: 3.219e-08 sec.
			Error Rate: 9.46721e-05
		(2,):
			Duration: 3.7962e-08 sec.
			Error Rate: 9.88894e-05
	reset
		(0,):
		(1,):
		(2,):
	delay
		(0,):
		(1,):
		(2,):
	measure
		(0,):
			Duration: 9.2907e-07 sec.
			Error Rate: 0.0038711
		(1,):
			Duration: 1.0898e-06 sec.
			Error Rate: 0.00234542
		(2,):
			Duration: 1.47208e-06 sec.
			Error Rate: 0.00449215

@qiskit-bot qiskit-bot added the Community PR PRs from contributors that are not 'members' of the Qiskit repo label May 6, 2025
@coveralls
Copy link

coveralls commented Oct 15, 2025

Pull Request Test Coverage Report for Build 20393129918

Details

  • 24 of 24 (100.0%) changed or added relevant lines in 1 file are covered.
  • 22 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.003%) to 88.307%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 4 91.52%
crates/circuit/src/parameter/symbol_expr.rs 6 73.19%
crates/qasm2/src/parse.rs 12 96.62%
Totals Coverage Status
Change from base Build 20366546417: -0.003%
Covered Lines: 96727
Relevant Lines: 109535

💛 - Coveralls

@MozammilQ MozammilQ marked this pull request as ready for review October 15, 2025 14:36
@MozammilQ MozammilQ requested review from a team and kt474 as code owners October 15, 2025 14:36
@qiskit-bot
Copy link
Collaborator

Thank you for opening a new pull request.

Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.

While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.

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

  • @Qiskit/terra-core

@1ucian0 1ucian0 moved this to PR open / Contributor working on it in Contributor Monitoring Oct 16, 2025
@1ucian0 1ucian0 linked an issue Oct 16, 2025 that may be closed by this pull request
@1ucian0 1ucian0 added the Changelog: Bugfix Include in the "Fixed" section of the changelog label Oct 16, 2025
@1ucian0 1ucian0 changed the title same error-rate and duration for bi-directional gates different error-rate and duration for bi-directional gates Oct 16, 2025
@1ucian0 1ucian0 added the stable backport potential The bug might be minimal and/or import enough to be port to stable label Oct 16, 2025
@1ucian0 1ucian0 added this to the 2.3.0 milestone Oct 16, 2025
@1ucian0 1ucian0 changed the title different error-rate and duration for bi-directional gates same error-rate and duration for bi-directional gates Oct 16, 2025
@1ucian0 1ucian0 self-assigned this Oct 16, 2025
@Cryoris Cryoris moved this from Ready to At risk in Qiskit 2.3 Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changelog: Bugfix Include in the "Fixed" section of the changelog Community PR PRs from contributors that are not 'members' of the Qiskit repo stable backport potential The bug might be minimal and/or import enough to be port to stable

Projects

Status: PR open / Contributor working on it
Status: At risk

Development

Successfully merging this pull request may close these issues.

GenericBackendV2 reports different error rates for cz direction

4 participants