Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Classically Controlled to Master#310

Merged
ScottCarda-MS merged 66 commits intomasterfrom
sccarda/ClassicallyControlledToMaster
Feb 12, 2020
Merged

Classically Controlled to Master#310
ScottCarda-MS merged 66 commits intomasterfrom
sccarda/ClassicallyControlledToMaster

Conversation

@ScottCarda-MS
Copy link
Contributor

Added the Classically Controlled Rewrite step to the compilation steps. This step resolves if-conditions that are reliant on results from quantum measurements to calls to the interfaces operations, otherwise known as ApplyIf operations. This allows a wider range of code to be consumable by hardware.

…rations. Also added a transformation for reassigning all type param references in the scope to the new local type params of the genrerated operation.
… on a whole callable, and added logic for some special cases where the transformation should not reroute.
…bclass inside the ClassicallyControlledTranformation class.
…deal with mutables, and change logic to all-or-nothing with if-else conversions.
…ol operations. Still needs some work in resolving some ToDo's.
…functor-appropriate ApplyIf operation is used to call them.
Copy link
Contributor

@bettinaheim bettinaheim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've commented on two minor things that should be addressed before merging, but other than that looks good!

@ScottCarda-MS ScottCarda-MS merged commit d08dcb1 into master Feb 12, 2020
@ScottCarda-MS ScottCarda-MS deleted the sccarda/ClassicallyControlledToMaster branch February 13, 2020 00:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants