• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Qiskit / Qiskit.jl / 28632048266
85%
main: 85%

Build:
Build:
LAST BUILD BRANCH: target
DEFAULT BRANCH: main
Ran 03 Jul 2026 01:19AM UTC
Jobs 1
Files 11
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Jul 2026 01:18AM UTC coverage: 84.99% (+5.6%) from 79.399%
28632048266

push

github

web-flow
Add friendly `Base.show` methods for wrapped C objects (#40)

* fix: Add friendly Base.show methods for wrapped C objects

- Override Base.show for QuantumCircuit to display num_qubits, num_clbits, and num_instructions
- Override Base.show for SparseObservable to display num_qubits and num_terms
- Override Base.show for TargetEntry to display num_properties
- Override Base.show for Target to display num_qubits and num_instructions
- Override Base.show for TranspileLayout for a friendly display
- Override Base.show for TranspileResult to display circuit and layout

These changes provide user-friendly output instead of showing raw pointer
representations when working with wrapped C objects in the REPL.

Fixes #35

* test: Add comprehensive tests for Base.show methods

- Add tests for QuantumCircuit.show with different configurations
- Add tests for SparseObservable.show with various qubit counts
- Add tests for Target.show and TargetEntry.show methods
- Add tests for TranspileLayout.show and TranspileResult.show
- Verify output contains expected class names and property information

These tests increase coverage for the new friendly show methods added in #35.

* fix: Correct C function wrappers and improve transpiler test

- Fix qk_target_num_qubits and qk_target_num_instructions wrappers to properly call C functions
- Fix qk_target_entry_num_properties wrapper to use C function correctly
- Fix qk_target_entry_add_property wrapper to handle Ref conversion
- Fix qk_target_add_instruction to properly convert pointers to Ref
- Update transpiler show test to use a fully configured target
- Import C functions with aliases to avoid naming conflicts

* fix: Correct wrapper implementations and simplify tests

- Fix qk_target_num_qubits/instructions to call ccall directly with Ptr
- Fix qk_target_entry_num_properties to call ccall directly with Ptr
- Fix qk_target_entry_add_property to handle Ptr correctly without Ref
- Fix qk_target_add_instruction to use ccall... (continued)

43 of 47 new or added lines in 4 files covered. (91.49%)

436 of 513 relevant lines covered (84.99%)

67.17 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
75.34
12.18% src/target.jl
1
94.48
-0.41% src/circuit.jl
1
80.0
25.45% src/observable.jl
Jobs
ID Job ID Ran Files Coverage
1 28632048266.1 03 Jul 2026 01:19AM UTC 11
84.99
GitHub Action Run
Source Files on build 28632048266
  • Tree
  • List 11
  • Changed 6
  • Source Changed 4
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28632048266
  • 1ae7dbe0 on github
  • Prev Build on gh-readonly-queue/main/pr-55-0ef1d27330bd01a17cdd3d5e4c0b74b68489bfef (#28533919754)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc