Skip to content

Document canonicalizing nested circuit blocks - #593

Open
GiggleLiu wants to merge 1 commit into
masterfrom
automanage/document-canonicalize
Open

GiggleLiu wants to merge 1 commit into
masterfrom
automanage/document-canonicalize

Conversation

@GiggleLiu

Copy link
Copy Markdown
Member

The nested put => chain => put performance report was answered with Optimise.canonicalize, but that method was difficult to discover outside the OpenQASM-specific documentation.

Add a performance-tip example showing how to flatten the nested structure and verify that its matrix is unchanged.

Validation:

  • Executed the documented example against YaoBlocks and asserted matrix equivalence, two flattened blocks, and PutBlock output structure.
  • git diff --check

Closes #569

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zygote struggles with circuits that have a nested structure such as put => chain => put

1 participant