Relation between quantum maps and quantum states