[refactor]: Use static methods from Guppy v1.1 to simplify Steane primitive tests

Open Beginner friendly
#359 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
84/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
testing-qa

Research direction

Start with the LogicalBlock implementation and tests/code/steane/test_steane_primitives.py. Read the existing array-based initialization and the Guppy v1.1 static-method usage, then run the Steane primitive tests. Done means LogicalBlock.take_from_array borrows qubits from an array and the tests use it without the existing boilerplate.

Written by the indexing model from the issue text.

Description

C-maintenance S-needs-triage
Description

Add a LogicalBlock.take_from_array function that borrows qubits from an array to initialise a LogicalBlock, and use it to remove the boilerplate from tests/code/steane/test_steane_primitives.py.

Motivation

No response

Scope

No response

Component

No response

Priority

None

Additional Context

No response

Dominant language
Python
Stars
5
Forks
1
Avg merge
21h 45m
Merged PRs (30d)
99

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Quantinuum/guppyft

All issues in Quantinuum/guppyft

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.