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"