Class LocalSimulator
java.lang.Object
org.redfx.strange.simulator.local.LocalSimulator
- All Implemented Interfaces:
Simulator
public class LocalSimulator extends Object implements Simulator
- Author:
- johan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[]org.redfx.strange.Complex[]calculateResults(org.redfx.strange.Gate[][] gates)org.redfx.strange.Complex[]List<org.redfx.strange.Step>convertRenderSteps(List<org.redfx.strange.Step> renderSteps)Replace partial gates from the renderModel with identity gates
-
Constructor Details
-
LocalSimulator
-
-
Method Details
-
convertRenderSteps
Replace partial gates from the renderModel with identity gates- Parameters:
renderSteps-- Returns:
-
calculateResults
public org.redfx.strange.Complex[] calculateResults(org.redfx.strange.Gate[][] gates)- Specified by:
calculateResultsin interfaceSimulator
-
calculateResults
- Specified by:
calculateResultsin interfaceSimulator
-
calculateQubitStates
- Specified by:
calculateQubitStatesin interfaceSimulator
-