From 0afb1ad21b98146c1952cd1f7066e7c20382925a Mon Sep 17 00:00:00 2001 From: Didictateur <105631786+Didictateur@users.noreply.github.com> Date: Sun, 22 Oct 2023 19:05:37 +0200 Subject: [PATCH] Update methods --- docs/QuBit/IQuBit.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/docs/QuBit/IQuBit.md b/docs/QuBit/IQuBit.md index 7443508..41304db 100644 --- a/docs/QuBit/IQuBit.md +++ b/docs/QuBit/IQuBit.md @@ -2,22 +2,28 @@ IQuBit(n: int, mb: MuBit) +IQuBit(QuBit) + - n: the position of the QuBit in the list of intricated QuBits - mb: the MuBit which organises the intricated QuBit ### Attributes -- ```__state: list[complexe]``` +- ```__n: int``` - list of the values for the state |0> and |1> + the position of the QuBit in the list of intricated QuBits + +- ```__Mubit: MuBit``` + the MuBit which organises the intricated QuBit - ```__intricated: bool``` - tells if the qubit is intricated or not + tells if the QuBit is intricated or not + ### Methode -- ```__init__(alpha: complexe=1, beta: complexe=0) -> None``` +- ```__init__(n: int, mb: MuBit) -> None``` initiates the qubit @@ -25,9 +31,9 @@ IQuBit(n: int, mb: MuBit) returns the value of __intricated -- ```get_MuBit() -> None``` +- ```get_MuBit() -> MuBit``` - returns the MuBit in wich the QuBit is intricated. If not intricated, rerurns None + returns the MuBit in wich the QuBit is intricated. - ```__str__() -> str```