-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
area/circuitskind/design-issueA conversation around designA conversation around designkind/healthFor CI/testing/release process/refactoring/technical debt itemsFor CI/testing/release process/refactoring/technical debt itemsstatus/needs-agreed-designWe want to do this, but it needs an agreed upon design before implementationWe want to do this, but it needs an agreed upon design before implementationtriage/needs-more-evidence[Feature requests] Seems plausible, but maintainers are not convinced about the use cases yet[Feature requests] Seems plausible, but maintainers are not convinced about the use cases yet
Description
Description of the issue
We have often discussed in the past the need for a builder pattern for constructing circuits, for example see #3246 and #2775.
#6013 made a first attempt of abstracting out an important piece of circuit construction code into a free function - get_earliest_accommodating_moment_index
.
This issue to discuss:
- Where to best put the free function
get_earliest_accommodating_moment_index
. - Create a new circuit builder class that can generalize the utility provided by
get_earliest_accommodating_moment_index
and can be used in bothCircut._load_contents_with_earliest_strategy
and_stratify_circuit
for efficiently constructing new circuits.
Cirq version
1.2.0.dev
Metadata
Metadata
Assignees
Labels
area/circuitskind/design-issueA conversation around designA conversation around designkind/healthFor CI/testing/release process/refactoring/technical debt itemsFor CI/testing/release process/refactoring/technical debt itemsstatus/needs-agreed-designWe want to do this, but it needs an agreed upon design before implementationWe want to do this, but it needs an agreed upon design before implementationtriage/needs-more-evidence[Feature requests] Seems plausible, but maintainers are not convinced about the use cases yet[Feature requests] Seems plausible, but maintainers are not convinced about the use cases yet
Type
Projects
Status
No status