- class mentpy.PennylaneSimulator(mentpy.BaseSimulator)
Simulator for measuring patterns of MBQC circuits.
- Parameters:¶
- mbqcircuit : mp.MBQCircuit
The MBQC circuit used for the simulation.
- input_state : np.ndarray
The input state of the simulator.
See also
mp.PatternSimulator
,mp.CirqSimulator
Constructors¶
- PennylaneSimulator(mbqcircuit: MBQCircuit, input_state, ...)
Initialize self. See help(type(self)) for accurate signature.
String representation¶
Special methods¶
Methods¶
- reset(input_state=None)
Resets the simulator to the initial state.
Properties¶
- property input_state : ndarray
The input state of the simulator.
- property mbqcircuit : MBQCircuit
The MBQC circuit used for the simulation.