From bf32a83adeb821a437566363c340857dd4ca9bfa Mon Sep 17 00:00:00 2001 From: Serwan Asaad Date: Tue, 26 Nov 2024 20:27:16 +0100 Subject: [PATCH] add first qubit tests --- tests/components/test_qubit.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/components/test_qubit.py diff --git a/tests/components/test_qubit.py b/tests/components/test_qubit.py new file mode 100644 index 0000000..3c395b8 --- /dev/null +++ b/tests/components/test_qubit.py @@ -0,0 +1,11 @@ +from quam.components import Qubit + + +def test_qubit_name_int(): + qubit = Qubit(id=0) + assert qubit.name == "q0" + + +def test_qubit_name_str(): + qubit = Qubit(id="qubit0") + assert qubit.name == "qubit0"