liBarnum.py

class qAuth.ent.liBarnum.Authenticator(name)

Class for Authenticator

authenticate()

Method that takes care of authenticator’s job.

Returns:Result of authentication Check.
Return type:Boolean
bellMeasure()

Method that does the Bell Measurement of Aux Particles.

Returns:List of Bell Measurement result.
Return type:List of int
cnotR()

Method that applies CNOT Operation with Aux Pairs and ID Token.

class qAuth.ent.liBarnum.Participant

Class which defines common functions. Prover and Authenticator inherit this class.

createEnt(qubitA, qubitB, type)

Method that takes in two qubits and produce one of the four Bell states.

Parameters:
  • qubitA (Qubit Object) – First Qubit to the EPR Pair.
  • qubitB (Qubit Object) – Second Qubit to the EPR Pair.
  • type (int) – Type of EPR ( |phi+>,|phi->,|psi+>,|psi-> )
Returns:

List of two Qubit Objects that are entangled.

Return type:

List of Qubit objects

class qAuth.ent.liBarnum.Prover(name)

Class for Prover

authenticate(receiver)

Method that takes care of prover’s job.

Parameters:receiver (str) – Name of the Authenticator.
cnotS()

Method that applies CNOT operation for the prover.